I see that the Confluence class has a `get_attachments_from_content` method but that seems to return all the versions of the attachment.
For example, if I add an image A in a page P (v1) and I edit P (v2). The next call to `get_attachments_from_content` returns me 2 objects of A, not sure why. The latest version of A just has 1 image.
Hi @Rushabh Kela and welcome,
you could use the following api https://docs.atlassian.com/ConfluenceServer/javadoc/7.1.0/com/atlassian/confluence/pages/AttachmentManager.html#getLatestVersionsOfAttachments-com.atlassian.confluence.core.ContentEntityObject-
Hope this helps,
Fabio
Thanks for your reply. I was looking for an API in the Python version. The reference provided is for the Java API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.