getContentById function

Future<ServerResponse<ContentItemPublicContract>> getContentById (
  1. HttpClient http,
  2. GetContentByIdParams params
)

Returns a content item referenced by id

Implementation

Future<ServerResponse<ContentItemPublicContract>> getContentById(HttpClient http, GetContentByIdParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Content/GetContentById/${params.id}/${params.locale}/",
    {
      'head': params.head
    },
    null
    ));
}