fetchUserProfile method

Future<PublicUserProfileResult> fetchUserProfile(
  1. String userId
)

Fetches public user profile.

Implementation

Future<PublicUserProfileResult> fetchUserProfile(String userId) async {
  final json = await _sendJson(
    method: 'GET',
    path: '/api/v1/users/$userId/profile',
  );
  return PublicUserProfileResult.fromJson(json);
}