searchContentByTagAndType function

Future<ServerResponse<SearchResultOfContentItemPublicContract>> searchContentByTagAndType (
  1. HttpClient http,
  2. SearchContentByTagAndTypeParams params
)

Searches for Content Items that match the given Tag and Content Type.

Implementation

Future<ServerResponse<SearchResultOfContentItemPublicContract>> searchContentByTagAndType(HttpClient http, SearchContentByTagAndTypeParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Content/SearchContentByTagAndType/${params.tag}/${params.type}/${params.locale}/",
    {
      'currentpage': params.currentpage,
      'head': params.head,
      'itemsperpage': params.itemsperpage
    },
    null
    ));
}