coreUsersProxyRetrieveWithHttpInfo method

Future<Response> coreUsersProxyRetrieveWithHttpInfo({
  1. String? email,
  2. int? userId,
  3. String? username,
})

Retrieve proxy user information by user_id

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> coreUsersProxyRetrieveWithHttpInfo({ String? email, int? userId, String? username, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/core/users/proxy/';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (email != null) {
    queryParams.addAll(_queryParams('', 'email', email));
  }
  if (userId != null) {
    queryParams.addAll(_queryParams('', 'user_id', userId));
  }
  if (username != null) {
    queryParams.addAll(_queryParams('', 'username', username));
  }

  const contentTypes = <String>[];


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