public BitBucketUserResponse GetProfile(string username)
        {
            // Make the call to the API
            SocialHttpResponse response = Raw.GetProfile(username);

            // Validate the response
            if (response.StatusCode != HttpStatusCode.OK)
            {
                throw new BitBucketHttpException(response.StatusCode);
            }

            // Parse the response
            return(BitBucketUserResponse.ParseJson(response.GetBodyAsString()));
        }
Exemplo n.º 2
0
 public BitBucketUserResponse GetProfile(string accountName)
 {
     return(BitBucketUserResponse.ParseJson(Raw.GetProfile(accountName)));
 }