The Vimeo API is a powerful tool for developers to access a wide range of features on the Vimeo platform. With the Vimeo API, you can build a variety of applications to enhance the user experience sharing videos. Here are a few examples of applications that can be built using the Vimeo API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vimeo: {
type: "app",
app: "vimeo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.vimeo.com/me`,
headers: {
Authorization: `Bearer ${this.vimeo.$auth.oauth_access_token}`,
},
})
},
})
Vimeo uses OAuth authentication. When you connect your Vimeo account, Pipedream will open a popup window where you can sign into Vimeo and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Vimeo API.
Pipedream requests the following authorization scopes when you connect your account:
public
private
purchased
create
edit
delete
interact
promo_codes
video_files
GET
https://api.vimeo.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://api.vimeo.com/oauth/access_token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}