php - How to retrieve video URLs by video ID from my own Vimeo account -


i have vimeo pro account bunch of videos, , want use php retrieve direct link video (so mp4 file url can through settings sections in vimeo's website) providing video id.

i've created vimeo app in vimeo's developer site, have required credentials. vimeo's documentation nightmare , end jumping link link trying find in order end started...

i've found this example in when follow end reaching wall because api uses apparently doesn't work anymore, in order find out how adapt use current documentation, takes me loophole mentioned above.

so, point me (or provide) real world code i'm trying accomplish? sounds should pretty simple can't figure out. biggest issue have examples see meant accessing others videos, want access mine.

i've been looking @ api's github page can't figure out how initiate api credentials , how video's information providing id, don't see example that.

any appreciated!

i´m facing same problems trying real world code in order learn how use new api.

here example of how video url:

<?php      require("includes/vimeo/autoload.php");     use vimeo\vimeo;      $client_id = 'client identifier';     $client_secret = 'client secrets';     $access_token = 'token';      $vimeo = new vimeo($client_id, $client_secret, $access_token);     $response = $vimeo->request("/videos/video_id");     echo $response["body"]["link"];  ?>   

making list videos of album, sorted alphabetic, 50 per page (2 pages in case, 83 videos):

<?php      require("includes/vimeo/autoload.php");     use vimeo\vimeo;      $client_id = 'client identifier';     $client_secret = 'client secrets';     $access_token = 'token';      $vimeo = new vimeo($client_id, $client_secret, $access_token);      /* list of videos in album */     $pages = 2;     for($i = 1; $i <= $pages; $i++) {     $format = "/me/albums/3004651/videos?per_page=50&sort=alphabetical&page=" . $i;     $response = $vimeo->request($format);      foreach ($response['body']['data'] $video) {         echo str_replace("/videos/", "", $video['uri']);         echo "<br />";     }  }    ?>   

more code examples good. hope helps.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -