createAccountCpmToken method
Implementation
Future<CpmToken> createAccountCpmToken({
required String accountId,
List<String>? scopes,
int? expiresIn,
String? metadata,
bool? keepAlive,
bool? isShortToken,
String? strategy,
String? couponId,
}) async {
return await invokeMethod<CpmToken>(
(j) => CpmToken.fromJson(j),
'autogen_createAccountCpmToken',
{
'env': this.env.index,
'accessToken': this.accessToken,
'account_id': accountId,
'scopes': scopes,
'expires_in': expiresIn,
'metadata': metadata,
'keep_alive': keepAlive,
'is_short_token': isShortToken,
'strategy': strategy,
'coupon_id': couponId,
},
);
}