Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

FlyingPDF with Oauth

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

I believe flyingpdf is not accessible through Oauth authentication.

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

0 votes

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

113 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you