pullFromPostmaster static method
Future<Int32Response>
pullFromPostmaster(
- HttpClient client,
- DestinyPostmasterTransferRequest body
Extract an item from the Postmaster, with whatever implications that may entail. You must have a valid Destiny account. You must also pass BOTH a reference AND an instance ID if it's an instanced item.
Implementation
static Future<Int32Response> pullFromPostmaster (
HttpClient client,
DestinyPostmasterTransferRequest body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final HttpClientConfig config = HttpClientConfig('POST', '/Destiny2/Actions/Items/PullFromPostmaster/', params);
config.body = await body.asyncToJson();
config.bodyContentType = 'application/json';
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return Int32Response.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}