Closed glacier890 closed 2 years ago
Yes - when you request a video, you can use:
/videos/{video_id}:{video_hash}
So, Vimeo::request('/videos/1234:abcd')
Thank you for the response. Sorry if I am misunderstanding your reply, but my issue is when I use the upload method to upload the video to Vimeo, I need to get the hash parameter in the response so I can store the hash parameter to our database. It seems like the only way to find the hash parameter for each video is logging in to Vimeo and finding it manually.
Oh apologies, I misread the question.
The hash isn't available directly, but there are many properties you can pull it if needed, or where you can get the full URI where needed.
For example:
/videos/1234?fields=metadata.interactions.edit.uri,link,player_embed_url
The link
property is the full URL on the Vimeo site (this always has the hash in it), and metadata.interactions.edit.uri
will have the full Video URI (including the hash required). player_embed_url
may be what you want to store, as this just has the entire player url available in it (so you don't need to build it directly). If you're only able to store the hash, any of these can be parsed to get the hash as needed.
That worked perfectly. Thank you!
Vimeo made some changes last year that if you have your videos as unlisted then you need to include the hash parameter to be able to embed the videos on your site. Is there a way to include the hash parameter in the response of the upload method?