equipItem function

Future<ServerResponse<int>> equipItem (
  1. HttpClient http,
  2. DestinyItemActionRequest body
)

Equip an item. You must have a valid Destiny Account, and either be in a social space, in orbit, or offline.

Implementation

Future<ServerResponse<int>> equipItem(HttpClient http, DestinyItemActionRequest body) {
  return http.request(new HttpClientConfig(
    'POST',
    "https://www.bungie.net/Platform/Destiny2/Actions/Items/EquipItem/",
    null,
    body
    ));
}