public BitBucketCurrentUserResponse GetInfo()
        {
            // Make the call to the API
            SocialHttpResponse response = Raw.GetInfo();

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

            // Parse the response
            return(BitBucketCurrentUserResponse.ParseJson(response.GetBodyAsString()));
        }
Ejemplo n.º 2
0
 public BitBucketCurrentUserResponse GetInfo()
 {
     return(BitBucketCurrentUserResponse.ParseJson(Raw.GetInfo()));
 }