awaProvideAuthorizationResult static method
Provide the result of the user interaction. Called by the Bungie Destiny App to approve or reject a request.
Implementation
static Future<Int32Response> awaProvideAuthorizationResult (
HttpClient client,
AwaUserResponse body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final HttpClientConfig config = HttpClientConfig('POST', '/Destiny2/Awa/AwaProvideAuthorizationResult/', 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);
}