revokeUserAccessTokenWithHttpInfo method
Future<Response>
revokeUserAccessTokenWithHttpInfo(
- MmRevokeUserAccessTokenRequest mmRevokeUserAccessTokenRequest
Revoke a user access token
Revoke a user access token and delete any sessions using the token. Minimum server version: 4.1 ##### Permissions Must have revoke_user_access_token
permission. For non-self requests, must also have the edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
- MmRevokeUserAccessTokenRequest mmRevokeUserAccessTokenRequest (required):
Implementation
Future<Response> revokeUserAccessTokenWithHttpInfo(
MmRevokeUserAccessTokenRequest mmRevokeUserAccessTokenRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/tokens/revoke';
// ignore: prefer_final_locals
Object? postBody = mmRevokeUserAccessTokenRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}