createOauthProviders method
Future<TCreateOauthProvidersResponse>
createOauthProviders({
- required TCreateOauthProvidersBody input,
Create Oauth providers for a specified user.
Sign the provided TCreateOauthProvidersBody with the client's stamp function and submit the request (POST /public/v1/submit/create_oauth_providers).
See also: stampCreateOauthProviders.
Implementation
Future<TCreateOauthProvidersResponse> createOauthProviders({
required TCreateOauthProvidersBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS',
);
return await request<Map<String, dynamic>, TCreateOauthProvidersResponse>(
"/public/v1/submit/create_oauth_providers",
body,
(json) => TCreateOauthProvidersResponse.fromJson(
transformActivityResponse(json, 'CreateOauthProviders')));
}