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())); }
public BitBucketCurrentUserResponse GetInfo() { return(BitBucketCurrentUserResponse.ParseJson(Raw.GetInfo())); }