Having trouble with methods for Vimeo's new API to get url of files -
i try the data of field "files" "quality" value "hd". read endpoints , try make request thee values of fields.
my problem can't obtain value of field "files" because vector. how way pass endpoint?.
the resource of research follow: https://developer.vimeo.com/api/endpoints.
actually code can obtein principal fields can't acces fileds compound others.
$client_id = "xxx"; $client_secret= "xxx"; $access_token = "xxx" ; $lib = new vimeo($client_id, $client_secret, $access_token); $response = $lib->request("/videos/videoid")
the return value of request
method associative array. associative array contain 3 values
- body: associative array containing full json response
- headers: associative array of response headers
- status: http status code (see http://httpstatus.es detailed list)
to access files array specifically, use following code:
$response['body']['files']
this contain array of file objects loop through.
foreach ($response['body']['files'] $file) { // use $file }
note: pro members have access video files, , own files.
Comments
Post a Comment