getProfileImageWithHttpInfo method

Future<Response> getProfileImageWithHttpInfo(
  1. String userId, {
  2. num? q,
})

Get user's profile image

Get a user's profile image based on user_id string parameter. ##### Permissions Must be logged in.

Note: This method returns the HTTP Response.

Parameters:

  • String userId (required): User GUID

  • num q: Not used by the server. Clients can pass in the last picture update time of the user to potentially take advantage of caching

Implementation

Future<Response> getProfileImageWithHttpInfo(
  String userId, {
  num? q,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/image'.replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (q != null) {
    queryParams.addAll(_queryParams('', '_', q));
  }

  const contentTypes = <String>[];

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