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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -