getVendor function

Future<ServerResponse<DestinyVendorResponse>> getVendor (
  1. HttpClient http,
  2. GetVendorParams params
)

Get the details of a specific Vendor.

Implementation

Future<ServerResponse<DestinyVendorResponse>> getVendor(HttpClient http, GetVendorParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/${params.membershipType}/Profile/${params.destinyMembershipId}/Character/${params.characterId}/Vendors/${params.vendorHash}/",
    {
      'components': params.components
    },
    null
    ));
}