exchangeDelegationCode method
Implementation
Future<AccessToken> exchangeDelegationCode({
required String code,
required String clientId,
required String clientSecret,
String grantType = "urn:pokepay:delegation-code",
}) async {
return await invokeMethod<AccessToken>((j) => AccessToken.fromJson(j), 'exchangeDelegationCode', {
'env': this.env.index,
'code': code,
'clientId': clientId,
'clientSecret': clientSecret,
'grantType': grantType,
});
}