public BitBucketRepositoriesResponse GetRepositories(string username) { // Make the call to the API SocialHttpResponse response = Raw.GetRepositories(username); // Validate the response if (response.StatusCode != HttpStatusCode.OK) { throw new BitBucketHttpException(response.StatusCode); } // Parse the response return(BitBucketRepositoriesResponse.ParseJson(response.GetBodyAsString())); }
/// <summary> /// Gets a list of repositories of the with the specified <code>username</code>. /// </summary> /// <param name="username">The username of the user.</param> /// <param name="options">The options for the call to the API.</param> public BitBucketRepositoriesResponse GetRepositories(string username, BitBucketRepositoriesOptions options) { return(BitBucketRepositoriesResponse.ParseResponse(Raw.GetRepositories(username, options))); }