docs/classes/management.SDK.UserGrantsClient.html
new UserGrantsClient(options: BaseClientOptions): UserGrantsClient
list(
request?: ListUserGrantsRequestParameters,
requestOptions?: UserGrantsClient.RequestOptions,
): Promise<Page<UserGrant, ListUserGrantsOffsetPaginatedResponseContent>>
Retrieve the grants associated with your account.
OptionalrequestOptions: UserGrantsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.userGrants.list({ per_page: 1, page: 1, include_totals: true, user_id: "user_id", client_id: "client_id", audience: "audience" })Copy
deleteByUserId(
request: DeleteUserGrantByUserIdRequestParameters,
requestOptions?: UserGrantsClient.RequestOptions,
): HttpResponsePromise<void>
Delete a grant associated with your account.
OptionalrequestOptions: UserGrantsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.userGrants.deleteByUserId({ user_id: "user_id" })Copy
delete(
id: string,
requestOptions?: UserGrantsClient.RequestOptions,
): HttpResponsePromise<void>
Delete a grant associated with your account.
ID of the grant to delete.
OptionalrequestOptions: UserGrantsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.userGrants.delete("id")Copy
Protected Readonly_options_options: NormalizedClientOptionsWithAuth<BaseClientOptions>
Member Visibility
ThemeOSLightDark
Constructors constructor Methods listdeleteByUserIddelete Properties _options