I am trying to get the contents of a page with Dapplo.Confluence nuget, but it does not output anything.
static void Main(string[] args)
{
Confluence();
}
public static async void Confluence()
{
var confluenceClient = ConfluenceClient.Create(new Uri("https://testtest6601.atlassian.net/wiki"));
confluenceClient.SetBasicAuthentication(@{email}, @{token});
var query = 458753;
var pages = await confluenceClient.Content.GetAsync(query);
Console.WriteLine(pages);
var content = await confluenceClient.Content.GetAsync(pages, ConfluenceClientConfig.ExpandGetContent);
Console.WriteLine(content);
//foreach (var contentDigest in pages.Results)
//{
// // As the content from the Search is a digest, get the details (it's also possible to get the details during the search)
// var content = await confluenceClient.Content.GetAsync(contentDigest, ConfluenceClientConfig.ExpandGetContentWithStorage);
// // Output the information
// Console.WriteLine(content.Body);
// break;
}
Does anyone have an idea or an example of this working?