getCommunityContent function

Future<ServerResponse<PostSearchResponse>> getCommunityContent (HttpClient http, GetCommunityContentParams params)

Returns community content.

Implementation

Future<ServerResponse<PostSearchResponse>> getCommunityContent(HttpClient http, GetCommunityContentParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/CommunityContent/Get/${params.sort}/${params.mediaFilter}/${params.page}/",
    null,
    null
    ));
}