getAuthorizationForm method

Future<Result<AccountAuthorizationFormBase>> getAuthorizationForm({
  1. required int botId,
  2. required String scope,
  3. required String publicKey,
})

Get Authorization Form.

ID: a929597a.

Implementation

Future<Result<AccountAuthorizationFormBase>> getAuthorizationForm({
  required int botId,
  required String scope,
  required String publicKey,
}) async {
  // Preparing the request.
  final request = AccountGetAuthorizationForm(
    botId: botId,
    scope: scope,
    publicKey: publicKey,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<AccountAuthorizationFormBase>();
}