With the Frame.io API, you can build tools for managing your video content and collaboration workflow. For example, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
frame: {
type: "app",
app: "frame",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.frame.io/v2/accounts`,
headers: {
Authorization: `Bearer ${this.frame.$auth.oauth_access_token}`,
},
})
},
})
Frame.io uses OAuth authentication. When you connect your Frame.io account, Pipedream will open a popup window where you can sign into Frame.io and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Frame.io API.
Pipedream requests the following authorization scopes when you connect your account:
presentation.update
comment.read
asset.update
reviewlink.update
webhook.create
account.read
action.update
reviewlink.read
presentation.read
action.create
presentation.create
auditlog.read
team.create
comment.create
team.read
offline
reviewlink.delete
project.update
project.delete
webhook.delete
action.delete
asset.delete
webhook.read
asset.create
comment.delete
webhook.update
asset.read
comment.update
project.read
action.read
reviewlink.create
presentation.delete
project.create
team.update
GET
https://applications.frame.io/oauth2/auth
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://applications.frame.io/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://applications.frame.io/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}