menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Frame.io Developers

Frame.io is a video review and collaboration platform. Share video projects with your team and clients for fast feedback and approval. Use Frame.io's API to add custom features to your workflow!

Channels
Team

Obtain FrameIO Access Token using cURL or Java?

June 9, 2021 at 9:13pm

Obtain FrameIO Access Token using cURL or Java?

June 9, 2021 at 9:13pm
Hi, I'm building a web app that creates and manages workflows using OAuth2.0 to get access and refresh tokens. However, I couldn't find any examples of cURL commands or Java code to get an access token. Using https://developer.frame.io/docs/oauth-2-applications/building-an-oauth2-app, I tried to copy the credentials but none of my requests seem to be valid. Has anyone had success using either Java or cURL to get an access token?

June 20, 2021 at 12:15am
Hi (jerry-xu)! Sorry it's taken me a while to get to this question, something happened with our notifications from Spectrum and I completely missed it.
I don't think it's possible to generate an OAuth access token outside of a browser experience, somewhere along the way the user has to login to frame.io's auth portal at accounts.frame.io, once the initial connection has been made though - your application can refresh the user's auth token using the refresh token id without requiring the user to login again.
As for building OAuth apps in Java, I know that our partner's application Kyno is built in Java, and then I also know that some of our customers have built applications in Java that talk to our API so it's definitely possible.
There are a number of improvements we'd like to make to our OAuth documentation, so if there are any additional questions/comments definitely let us know what you'd like to see!