I am adding a Confluence integration to my app. I have OAuth authorization setup and am able to get the contents of a page through the https://api.atlassian.com/ex/confluence/{cloudId}/wiki/rest/api/content/{pageId}. However, I would like to receive this page as PDF format instead. I am trying to use flyingpdf, and have found examples that use a url like https://{site-domain}/wiki/spaces/flyingpdf/pdfpageexport.action?pageId={pageId}. When I go to this url in my browser I see it works and exports a PDF. However, to use this in my app I need to convert it to using the OAuth form instead (https://api.atlassian.com/ex/confluence/{cloudId} instead of https://{site-domain}).
Does anyone know how to use flyingpdf with OAuth? I have tried multiple combinations of the https://api.atlassian.com/ex/confluence/{cloudId} url with flyingpdf to no avail.
Hello @Nikki Cantrell ,
Allow me to step-in to provide more details.
As already mentioned by @marc -Collabello--Phase Locked- flyingpdf is not accessible through Oauth2 (3LO).
This is because that's not an official REST API endpoint and therefore is not accessible using https://api.atlassian.com....
We do have a feature request open in our system since some time asking to have an endpoint to export pages to PDF but, as you can see, it didn't manage to get enough traction so far:
You may want to vote and watch the above feature request so that you will get notified in case of any update. The feature will be addressed according to the Implementation of New Features Policy.
As a workaround you can either try to check if the flyingpdf url is accessible using basic authentication with email address and API-Token or, as mentioned in below threads, use the python API:
Cheers,
Dario
I believe flyingpdf is not accessible through Oauth authentication.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@marc -Collabello--Phase Locked- Thanks for the answer Marc! Are you aware of any way to retrieve the page as a pdf using Oauth?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.