getDefaultProfileImage method

Future<void> getDefaultProfileImage(
  1. String userId
)

Return user's default (generated) profile image

Returns the default (generated) user profile image based on user_id string parameter. ##### Permissions Must be logged in. Minimum server version: 5.5

Parameters:

  • String userId (required): User GUID

Implementation

Future<void> getDefaultProfileImage(
  String userId,
) async {
  final response = await getDefaultProfileImageWithHttpInfo(
    userId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}