getVendors function
Get currently available vendors from the list of vendors that can possibly have rotating inventory. Note that this does not include things like preview vendors and vendors-as-kiosks, neither of whom have rotating/dynamic inventories. Use their definitions as-is for those.
Implementation
Future<ServerResponse<DestinyVendorsResponse>> getVendors(HttpClient http, GetVendorsParams params) {
return http.request(new HttpClientConfig(
'GET',
"https://www.bungie.net/Platform/Destiny2/${params.membershipType}/Profile/${params.destinyMembershipId}/Character/${params.characterId}/Vendors/",
{
'components': params.components
},
null
));
}