/// <summary>
 /// Gets a list of repositories of the user matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the call to the API.</param>
 /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns>
 /// <see>
 ///     <cref>https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D</cref>
 /// </see>
 public SocialHttpResponse GetRepositories(BitBucketGetRepositoriesOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     if (String.IsNullOrWhiteSpace(options.Username))
     {
         throw new PropertyNotSetException(nameof(options.Username));
     }
     return(Client.DoHttpGetRequest("https://bitbucket.org/api/2.0/repositories/" + options.Username, options));
 }
Exemple #2
0
 /// <summary>
 /// Gets a list of repositories of the user matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the call to the API.</param>
 /// <returns>An instance of <see cref="BitBucketGetRepositoriesResponse"/> representing the response.</returns>
 public BitBucketGetRepositoriesResponse GetRepositories(BitBucketGetRepositoriesOptions options)
 {
     return(BitBucketGetRepositoriesResponse.ParseResponse(Raw.GetRepositories(options)));
 }