getProfileImage method

Future<void> getProfileImage(
  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.

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<void> getProfileImage(
  String userId, {
  num? q,
}) async {
  final response = await getProfileImageWithHttpInfo(
    userId,
    q: q,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}