I have tried every single answer on this forum and couldn’t get a proper working code. So I am posting this again. I want to get the thumbnail of private and hidden Videos from Vimeo. I also have an access token generated which I tried to use with the solutions provided for the old questions which also didn’t work.
I tried this code
https://vimeo.com/api/oembed.json?url=https://vimeo.com/531126552/access_token
Also tried using cURL
curl_setopt($curl_h, CURLOPT_HTTPHEADER, array( 'Authorization: bearer {access_token}', 'Accept: application/vnd.vimeo.*+json;version=3.4', ) ); curl_setopt($curl_h, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl_h);
The response for above cURL code is this:
{"error":"Something strange occurred. Please contact the app owners.","link":null,"developer_message":"No user credentials were provided.","error_code":8003}
Please suggest me a way to do this or help me find where the error is.
Advertisement
Answer
The thumbnails can be accessed by the thumbnail_url in JSON data provided by Oembed API sample : https://vimeo.com/api/oembed.json?url=https://vimeo.com/{video_id}/