appAuthorization property

String get appAuthorization

Get the application authorization API token.

Returns empty if no valid authorization API token is used.

Returns

  • The token

Throws

  • An exception if it fails.

Implementation

static String get appAuthorization {
  final OperationResult resultString = staticMethod(
    'SdkSettings',
    'getAppAuthorization',
  );

  return resultString['result'];
}
set appAuthorization (String token)

Allow the given service type on the extra charged network type. By default all are allowed.

Parameters

  • IN token The API token

Throws

  • An exception if it fails.

Implementation

static set appAuthorization(String token) {
  if (isSDkInitialized) {
    objectMethod(0, 'SdkSettings', 'setAppAuthorization', args: token);
  } else {
    throw GemKitUninitializedException();
  }
}