php - Vimeo - get all user video ids in array -
i new vimeo api, need connec account, ids of uploaded videos , store them in array. have understanding of php frankly examples saw or documentation provided vimeo didn' tell me much, asking if there can direct me examples how connnect through oauth , call vimeo methods through script. lot!
1.if need user videos, can use curl request url - http://vimeo.com/api/v2/username/videos.json username name of vimeo user stream want get.
example:
$curl = curl_init('); curl_setopt($curl, curlopt_returntransfer, true); curl_setopt($curl, curlopt_followlocation, true); curl_setopt($curl, curlopt_timeout, 30); $data = json_decode(curl_exec($curl)); url_close($curl);
2.you can use implementation of advanced vimeo api php oauth - https://github.com/vimeo/vimeo-php-lib
Comments
Post a Comment