getUserByUsernameWithHttpInfo method

Future<Response> getUserByUsernameWithHttpInfo(
  1. String username
)

Get a user by username

Get a user object by providing a username. Sensitive information will be sanitized out. ##### Permissions Requires an active session but no other permissions.

Note: This method returns the HTTP Response.

Parameters:

  • String username (required): Username

Implementation

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

  // 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,
  );
}