Kubis1982.Atlassian.Confluense.RestClient.v2
1.8458.1
dotnet add package Kubis1982.Atlassian.Confluense.RestClient.v2 --version 1.8458.1
NuGet\Install-Package Kubis1982.Atlassian.Confluense.RestClient.v2 -Version 1.8458.1
<PackageReference Include="Kubis1982.Atlassian.Confluense.RestClient.v2" Version="1.8458.1" />
<PackageVersion Include="Kubis1982.Atlassian.Confluense.RestClient.v2" Version="1.8458.1" />
<PackageReference Include="Kubis1982.Atlassian.Confluense.RestClient.v2" />
paket add Kubis1982.Atlassian.Confluense.RestClient.v2 --version 1.8458.1
#r "nuget: Kubis1982.Atlassian.Confluense.RestClient.v2, 1.8458.1"
#:package Kubis1982.Atlassian.Confluense.RestClient.v2@1.8458.1
#addin nuget:?package=Kubis1982.Atlassian.Confluense.RestClient.v2&version=1.8458.1
#tool nuget:?package=Kubis1982.Atlassian.Confluense.RestClient.v2&version=1.8458.1
Atlassian Confluence REST Client
Strongly-typed REST client for Atlassian Confluence Cloud API v2, automatically generated using Microsoft Kiota from the official OpenAPI specification.
Package Information
Features
- ✅ Fully typed C# client for Confluence 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.Confluense.RestClient.v2
Via Package Manager Console
Install-Package Kubis1982.Atlassian.Confluense.RestClient.v2
Usage
Creating a Client Instance
To use the Confluence REST client, you need to create an instance with proper authentication:
Basic Authentication (Email + API Token) - Recommended
using Kubis1982.Atlassian.Confluense.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 confluenceClient = ConfluenseRestClient.Create(basicAuthProvider);
Note: The BasicAuthProvider is provided by the Kubis1982.Atlassian.RestClient package and is automatically included as a dependency.
Example Operations
// Get pages with limit
var pages = await confluenceClient.Pages.GetAsPagesGetResponseAsync(config =>
{
config.QueryParameters.Limit = 10;
});
Console.WriteLine($"Found {pages?.Results?.Count} pages");
foreach (var page in pages?.Results ?? [])
{
Console.WriteLine($"- {page.Title} (ID: {page.Id})");
}
// Get specific page by ID
var page = await confluenceClient.Pages["123456"].GetAsync();
Console.WriteLine($"Page: {page?.Title}");
// Search pages by title
var searchResults = await confluenceClient.Pages.GetAsPagesGetResponseAsync(config =>
{
config.QueryParameters.Title = "Meeting Notes";
config.QueryParameters.Limit = 5;
});
// Get spaces
var spaces = await confluenceClient.Spaces.GetAsSpacesGetResponseAsync(config =>
{
config.QueryParameters.Limit = 10;
});
foreach (var space in spaces?.Results ?? [])
{
Console.WriteLine($"Space: {space.Name} (Key: {space.Key})");
}
OpenAPI Specification
This client is generated from the official Confluence Cloud OpenAPI specification:
📄 Specification URL:
https://dac-static.atlassian.com/cloud/confluence/openapi-v2.v3.json?_v=1.8458.0
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.