insertSocketPlug function

Future<ServerResponse<DestinyItemChangeResponse>> insertSocketPlug (
  1. HttpClient http,
  2. DestinyInsertPlugsActionRequest body
)

Insert a plug into a socketed item. I know how it sounds, but I assure you it's much more G-rated than you might be guessing. We haven't decided yet whether this will be able to insert plugs that have side effects, but if we do it will require special scope permission for an application attempting to do so. You must have a valid Destiny Account, and either be in a social space, in orbit, or offline. Request must include proof of permission for 'InsertPlugs' from the account owner.

Implementation

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