dapplo / Dapplo.Confluence

An Atlassian confluence client for .NET
MIT License
34 stars 20 forks source link

Attachment Result Limit 50 #62

Open cao-bing opened 1 year ago

cao-bing commented 1 year ago

I want to get all attachments from confluence by the following code. But I just only get max 50 attachments from the result. How can I get all attachments?

var attachments = confluenceClient.Attachment.GetAttachmentsAsync(contentDigest);

Lakritzator commented 1 year ago

Hi,

there is currently no way. This project is extended on a need basis, so far nobody needed this yet.

I will try extend the GetAttachmentsAsync method with paging support, filename and type filtering, as is documented in the confluence API documentation: https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-get

Lakritzator commented 1 year ago

Just out of curiosity, can you explain your use-case, like why would content have more than 50 attachments?