searchContentWithText function

Future<ServerResponse<SearchResultOfContentItemPublicContract>> searchContentWithText (
  1. HttpClient http,
  2. SearchContentWithTextParams params
)

Gets content based on querystring information passed in. Provides basic search and text search capabilities.

Implementation

Future<ServerResponse<SearchResultOfContentItemPublicContract>> searchContentWithText(HttpClient http, SearchContentWithTextParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Content/Search/${params.locale}/",
    {
      'ctype': params.ctype,
      'currentpage': params.currentpage,
      'head': params.head,
      'searchtext': params.searchtext,
      'source': params.source,
      'tag': params.tag
    },
    null
    ));
}