Get URL / Code for Embedded Vimeo Videos

We have been using Vimeo PRO for a long time, we use it to host our videos that are shown on multiple websites. These videos are set to be confidential, so they cannot be found in the public Vimeo area. Until now, when we needed to display a video, we either got the embed code from Vimeo or copied the "direct link" (ie http://player.vimeo.com/external/1234567890.hd.mp4?s=nskljdfnsdlkn3498hnc3h49fo83h4oif3

) into a video file of the required quality and loaded it on a third party player. Not all of them are any problems.

We're going to start processing a lot more videos now, so I'm looking at a way to automate the process of getting these embed codes or direct links. It looks like the path can be used with the Vimeo API.

However, I started looking into it and I am rather confused. It talks about registering apps, granting permissions to users when requesting access, and other things that seem overkill for what I really need.

We don't have registration apps or multiple users to grant access, we just have a Vimeo username / password and the idea is to code a function that can be used across different websites to request a video url or code its embeds based on its Vimeo ID.

Am I looking in the wrong place? If not, which "application" should I register? Every site that will use Vimeo video? (we have dozens)

If the Vimeo API is the only way to go, can anyone link an example as far as possible for the kind of use we need?

Thank!

+3


source to share


1 answer


The Vimeo API is the right system, and I'll briefly describe what will work best for the described workflow.

This is required for every API application. We need to know who is using our system and how to contact them if necessary.

  1. Create an access token.


There is general documentation at https://developer.vimeo.com/api/authentication , but you will probably be using the "single user application" workflow. This is a tall heading for "creating a UI access token in your application page and then hard-coding your application". This access token will interact with the API on behalf of the user who registered the application.

  1. Request information about the video.

There are many different API calls for getting video information. You can find them at https://developer.vimeo.com/api/endpoints ./me/videos will show all verified video users, / videos / {video_id} will show one video.

+8


source







All Articles