Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

FlyingPDF with Oauth

Nikki Cantrell November 4, 2020

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.

2 answers

1 vote
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 10, 2020 edited

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

0 votes
marc -Collabello--Phase Locked-
Community Champion
November 6, 2020

I believe flyingpdf is not accessible through Oauth authentication.

Nikki Cantrell November 9, 2020

@marc -Collabello--Phase Locked- Thanks for the answer Marc! Are you aware of any way to retrieve the page as a pdf using Oauth?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

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 now
AUG Leaders

Atlassian Community Events