コード例 #1
0
 /// <summary>
 /// Gets the public information associated with a team.
 /// If the team's profile is private, the caller must be authenticated and authorized to view this information.
 /// </summary>
 public async Task <Team> GetProfileAsync()
 {
     return(await _sharpBucketV2.GetAsync <Team>(_baseUrl));
 }
コード例 #2
0
 /// <summary>
 /// Get the full project object located at this resource location
 /// https://developer.atlassian.com/bitbucket/api/2/reference/resource/teams/%7Busername%7D/projects/%7Bproject_key%7D#get
 /// </summary>
 /// <param name="token">The cancellation token</param>
 public async Task <Project> GetProjectAsync(CancellationToken token = default(CancellationToken))
 {
     return(await SharpBucketV2.GetAsync <Project>(ProjectUrl, token : token));
 }