getProfileImageWithHttpInfo method
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:
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,
);
}