getUserAccessTokenWithHttpInfo method

Future<Response> getUserAccessTokenWithHttpInfo(
  1. String tokenId
)

Get a user access token

Get a user access token. Does not include the actual authentication token. Minimum server version: 4.1 ##### Permissions Must have read_user_access_token permission. For non-self requests, must also have the edit_other_users permission.

Note: This method returns the HTTP Response.

Parameters:

  • String tokenId (required): User access token GUID

Implementation

Future<Response> getUserAccessTokenWithHttpInfo(
  String tokenId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/tokens/{token_id}'.replaceAll('{token_id}', tokenId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}