Using python requests and vimeo endpoints it becomes very easy and simple to upload our videos and customize them.
Vimeo Access token:
Create an account at vimeo, vimeo has different levels of account, so based on your requirement signup for suitable account.
This article assumes pro account.
After you log in, create an app and generate token based on your requirement like editing, uploading, view etc..
Get your desired video id and use the following iframe to display video.
Customizing your uploaded video:
Using python requests library you can customize your vimeo video.
Following code will edit description of the video, its name and setting the privacy rules like who can embed your video, who can view your video.
In the above code the patch request sets the video to be viewed by anybody.
The video embed setting as whitelist, which means that the video should be embeded only to the whitelisted domains. The whitelist domains can be added by using put request, shown below.
Custom image for the video:
Vimeo sets the image by default but we can customize it as follows.
What the above code does is, it gets the link to which our picture should be uploaded, as you can see rs.post does a post request using headers and gets the response, this response will have the link to which our picture should be uploaded.
Finall we send a patch request saying to activate the uploaded picture.
Vimeo preset helps to customize the vimeo player. First you have to create a preset by doing so a preset id will be created.
To list all the preset id's for a video send get request as below.
Select your desired preset id and send a put request.
Django-CRM :Customer relationship management based on Django
Django-blog-it : django blog with complete customization and ready to use with one click installer Edit
Django-webpacker : A django compressor tool
Django-MFA : Multi Factor Authentication
Docker-box : Web Interface to manage full blown docker containers and imagesMore...