Kubis1982.Atlassian.Bitbucket.RestClient.v2
2.300.163.2
dotnet add package Kubis1982.Atlassian.Bitbucket.RestClient.v2 --version 2.300.163.2
NuGet\Install-Package Kubis1982.Atlassian.Bitbucket.RestClient.v2 -Version 2.300.163.2
<PackageReference Include="Kubis1982.Atlassian.Bitbucket.RestClient.v2" Version="2.300.163.2" />
<PackageVersion Include="Kubis1982.Atlassian.Bitbucket.RestClient.v2" Version="2.300.163.2" />
<PackageReference Include="Kubis1982.Atlassian.Bitbucket.RestClient.v2" />
paket add Kubis1982.Atlassian.Bitbucket.RestClient.v2 --version 2.300.163.2
#r "nuget: Kubis1982.Atlassian.Bitbucket.RestClient.v2, 2.300.163.2"
#:package Kubis1982.Atlassian.Bitbucket.RestClient.v2@2.300.163.2
#addin nuget:?package=Kubis1982.Atlassian.Bitbucket.RestClient.v2&version=2.300.163.2
#tool nuget:?package=Kubis1982.Atlassian.Bitbucket.RestClient.v2&version=2.300.163.2
Atlassian Bitbucket REST Client
Strongly-typed REST client for Atlassian Bitbucket Cloud API v2, automatically generated using Microsoft Kiota from the official OpenAPI specification.
Package Information
Features
- ✅ Fully typed C# client for Bitbucket Cloud API v2
- ✅ Generated from official OpenAPI specification
- ✅ Built with Microsoft Kiota code generation tool
- ✅ Support for .NET 10.0+
Installation
Via NuGet Package Manager
dotnet add package Kubis1982.Atlassian.Bitbucket.RestClient.v2
Via Package Manager Console
Install-Package Kubis1982.Atlassian.Bitbucket.RestClient.v2
Via .csproj
<ItemGroup>
<PackageReference Include="Kubis1982.Atlassian.Bitbucket.RestClient.v2" Version="2.300.163" />
</ItemGroup>
Usage
Creating a Client Instance
To use the Bitbucket REST client, you need to create an instance with proper authentication:
Basic Authentication (Username + App Password)
using Kubis1982.Atlassian.Bitbucket.RestClient;
using Kubis1982.Atlassian.RestClient;
// Configuration
var domain = "your-company"; // without .atlassian.net
var email = "your-email@company.com";
var apiToken = "your-api-token"; // Generate from https://id.atlassian.com/manage-profile/security/api-tokens
// Create authentication provider
var basicAuthProvider = new BasicAuthProvider(email, apiToken);
// Initialize client
var bitbucketClient = BitbucketRestClient.Create(basicAuthProvider);
Note: The BasicAuthProvider is provided by the Kubis1982.Atlassian.RestClient package and is automatically included as a dependency.
Example Operations
// Get user repositories
var repositories = await bitbucketClient.Repositories[username].GetAsync();
foreach (var repo in repositories?.Values ?? [])
{
Console.WriteLine($"Repository: {repo.Name} ({repo.FullName})");
}
// Get specific repository
var repo = await bitbucketClient.Repositories[username]["repo-name"].GetAsync();
Console.WriteLine($"Repository: {repo?.Name}");
Console.WriteLine($"Description: {repo?.Description}");
Console.WriteLine($"Language: {repo?.Language}");
// Get repository commits
var commits = await bitbucketClient.Repositories[username]["repo-name"].Commits.GetAsync();
foreach (var commit in commits?.Values ?? [])
{
Console.WriteLine($"Commit: {commit.Hash} - {commit.Message}");
}
// Get pull requests
var pullRequests = await bitbucketClient.Repositories[username]["repo-name"].Pullrequests.GetAsync();
foreach (var pr in pullRequests?.Values ?? [])
{
Console.WriteLine($"PR #{pr.Id}: {pr.Title} ({pr.State})");
}
// Get repository branches
var branches = await bitbucketClient.Repositories[username]["repo-name"].Refs.Branches.GetAsync();
foreach (var branch in branches?.Values ?? [])
{
Console.WriteLine($"Branch: {branch.Name}");
}
OpenAPI Specification
This client is generated from the official Bitbucket Cloud OpenAPI specification:
📄 Specification URL:
https://dac-static.atlassian.com/cloud/bitbucket/swagger.v3.json?_v=2.300.163
Repository
For more information, visit the Atlassian REST Client repository.
License
MIT - See LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Kubis1982.Atlassian.RestClient (>= 1.0.0)
- Microsoft.Kiota.Bundle (>= 1.22.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.300.163.2 | 136 | 4/19/2026 |
| 2.300.163.1 | 124 | 4/13/2026 |
| 2.300.163 | 114 | 4/13/2026 |