searchDestinyEntities function

Future<ServerResponse<DestinyEntitySearchResult>> searchDestinyEntities (HttpClient http, SearchDestinyEntitiesParams params)

Gets a page list of Destiny items.

Implementation

Future<ServerResponse<DestinyEntitySearchResult>> searchDestinyEntities(HttpClient http, SearchDestinyEntitiesParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/Armory/Search/${params.type}/${params.searchTerm}/",
    {
      'page': params.page
    },
    null
    ));
}