Vimeo API を試す

2020/09/28   #vimeo 
このエントリーをはてなブックマークに追加

仕事で必要になった Vimeo API を試すまでのメモ。

  1. Vimeo アカウントをつくる
  2. https://developer.vimeo.com の右上の New app をクリックし、API 用のアプリケーションを作成する
    • App name はけっこう短めじゃないとつくれないみたい
    • 説明は The app will try the vimeo api for development purpose. This is because I need to try out a whole set of APIs to upgrade to the business plan. みたいにした
  3. 動画アップロード権限をリクエストする
  4. アクセストークンを生成する 106-1
  5. 試してみる
$ curl https://api.vimeo.com/tutorial -H "Authorization: bearer ACCESS_TOKEN"
{
    "message": "Success! You just interacted with the Vimeo API. Your dev environment is configured correctly, and the client ID, client secret, and access token that you provided are all working fine.",
    "next_steps_link": "https://developer.vimeo.com/api/guides/videos/upload",
    "token_is_authenticated": true