-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply an embed preset to a video? #35
Comments
For a little more context, I've tried: and got:
|
You can get more information about the request by inpsecting the raw HTTParty reponse I quickly created a convenience method for this call and updated the gem. So you can do this more easily:
|
Here's the result of #<HTTParty::Response:0x230f0 parsed_response="{"error":"The requested page couldn't be found."}", @response=#<Net::HTTPNotFound 404 Not Found readbody=true>, @headers={"connection"=>["close"], "content-length"=>["49"], "server"=>["nginx"], "content-type"=>["application/vnd.vimeo.error+json"], "expires"=>["Wed, 10 Feb 2021 10:16:46 GMT"], "cache-control"=>["private, no-store, no-cache"], "strict-transport-security"=>["max-age=31536000; includeSubDomains; preload"], "request-hash"=>[...], "x-bapp-server"=>[...], "x-vimeo-dc"=>["ge"], "accept-ranges"=>["bytes"], "via"=>["1.1 varnish, 1.1 varnish"], "date"=>["Wed, 10 Feb 2021 22:16:46 GMT"], "x-served-by"=>..., "x-cache"=>["MISS, MISS"], "x-cache-hits"=>["0, 0"], "x-timer"=>[...], "vary"=>["Accept,Vimeo-Client-Id"]}> |
Same response from |
This might be helpful: I was able to set the preset using RestClient with:
The |
The URI Path for this is missing a '/' between the base_uri and the preset portion of the path, example I get using this is
|
Is there a way to apply an embed preset to a video using this gem, either on upload or afterwards given the vimeo ID? The API has support for this:
https://developer.vimeo.com/api/reference/embed-presets?version=#add_video_embed_preset
The text was updated successfully, but these errors were encountered: