An Atlassian confluence client for .NET
Clone or download
Lakritzator Added dotnet core 3.0 support, also upgraded to net471 as there are s…
…o many "netstandard" issues with 461. Migrated the code to use Newtonsoft.Json

[release]
Latest commit 4804bc9 Dec 1, 2018

README.md

Dapplo.Confluence

This is a simple REST based Confluence client, written for Greenshot, by using Dapplo.HttpExtension

  • Current build status: Build status
  • Coverage Status: Coverage Status
  • NuGet package: NuGet package

The Confluence client supports most REST methods, and has a fluent API for building a CQL (Confluence Query Language) string to search with.

An example on how to use this Confluence client:

var confluenceClient = ConfluenceClient.Create(new Uri("https://confluence"));
confluenceClient.SetBasicAuthentication(username, password);
var query = Where.And(Where.Type.IsPage, Where.Text.Contains("Test Home"));
var searchResult = await confluenceClient.Content.SearchAsync(query, limit:1);
foreach (var content in searchResult.Results)
{
	Debug.WriteLine(content.Body);
}

If you want to extend the API, for example to add logic for a plugin, you can write an extension method to extend the IConfluenceClientPlugins. Your "plugin" extension will now be available, if the developer has a using statement of your namespace, on the .Plugins property of the IConfluenceClient