awaGetActionToken function

Future<ServerResponse<AwaAuthorizationResult>> awaGetActionToken (
  1. HttpClient http,
  2. AwaGetActionTokenParams params
)

Returns the action token if user approves the request.

Implementation

Future<ServerResponse<AwaAuthorizationResult>> awaGetActionToken(HttpClient http, AwaGetActionTokenParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/Awa/GetActionToken/${params.correlationId}/",
    null,
    null
    ));
}