getItem function

Future<ServerResponse<DestinyItemResponse>> getItem (HttpClient http, GetItemParams params)

Retrieve the details of an instanced Destiny Item. An instanced Destiny item is one with an ItemInstanceId. Non-instanced items, such as materials, have no useful instance-specific details and thus are not queryable here.

Implementation

Future<ServerResponse<DestinyItemResponse>> getItem(HttpClient http, GetItemParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/${params.membershipType}/Profile/${params.destinyMembershipId}/Item/${params.itemInstanceId}/",
    {
      'components': params.components
    },
    null
    ));
}