getUserByEmailWithHttpInfo method

Future<Response> getUserByEmailWithHttpInfo(
  1. String email
)

Get a user by email

Get a user object by providing a user email. Sensitive information will be sanitized out. ##### Permissions Requires an active session and for the current session to be able to view another user's email based on the server's privacy settings.

Note: This method returns the HTTP Response.

Parameters:

  • String email (required): User Email

Implementation

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

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