How to properly generate vimeo token for glitch aframe starter app - vimeo

Here we have vimeo aframe demo app
https://glitch.com/edit/#!/join/33131776-fd15-4fb4-bf54-f46db97e5409
In .ENV file need to provide valid api key
e.q:
VIMEO_TOKEN=[TOKEN REDACTED] /*somewhy not valid api token*/
ENV=dev
Could you please provide working VIMEO_TOKEN.
why i need it? need to see demo vimeo a-frame component With video, not with empty blackscreen.

You need a valid access token to interact with the Vimeo API. Note that direct video file links are only returned for Vimeo Pro members and higher: https://help.vimeo.com/hc/en-us/articles/224823567-Third-party-player-links
Check out Vimeo's authentication docs here: https://developer.vimeo.com/api/authentication

Related

How to access low definition videos of my own through Vimeo API?

I would like to access my own videos through Vimeo API and to download low and high definition versions that Vimeo encoded.
I have a Premium account on Vimeo.
I didn't find it in their doc :(
Is there a way? I would like to avoid encoding videos myself in different sizes...
Thanks!
First off, you'll need to be a Vimeo PRO member to get the direct video file URLs.
Using the latest API, do an authenticated GET https://api.vimeo.com/videos/[clip_id]. In the response you'll see an attribute named files that contain the HD, SD, and mobile transcodes that Vimeo generates. These URLs are meant for use with other video players (JWPlayer, or simply with the <video> tag, for example).
If you want to get the URLs to use for downloading (providing a download link on your site, for example) do the same authenticated GET https://api.vimeo.com/videos/[clip_id] to find the download attribute in the response. These URLs expire, and with them you'll see an expires attribute with the date and time.
Note that to get the download URLs, not only must you be authenticated as the clip owner, the API app itself must also be created by the clip owner.

How can i delete a video from my vimeo account using vimeo API

I have impelemted a single user application. So I'm hard coding the access token in my code itself. I'm able to upload video to my vimeo account.
Now, I would like to be able to delete a specific video from my account using VideoId.
How can we achieve this ?
does vimeo support deleting a video ?
I know that we can do it using the old API (v2) https://developer.vimeo.com/apis/advanced/methods/vimeo.videos.delete
But how can we achieve the same with the new API ?
Any help would be greatly appreciated.
The description for how to delete a video with their current API is here:
https://developer.vimeo.com/api/endpoints/videos#DELETE/videos/%7Bvideo_id%7D

Download Video using Vimeo API

Is it allowed to use the vimeo API to search and download videos from vimeo?
Can you download all type of videos or only a particular category?
If I would like to download all video, do I need a special approval from them (or special account) to be able to do so?
Edit: I would like to know if it's possibile using the current API
Downloading source files through the API is only available under three conditions.
You are the owner of the video
You have a PRO account
You are the owner of the API App.

Which VIMEO API to use for our needs - web based help "tutorials"

We have a web based system that we are looking at replacing our existing "help system" from uploading flash videos directly to our website to instead "embedding" content we upload to our vimeo account. We have setup a vimeo pro account and these videos need to be "private" i.e. not accessible to the general public. Which API version should I use? And do you have any sample code in say PHP I could take a peek at with the functionality we are after
The Advanced and Simple API's will no longer receive new features, and soon you will not be able to create new apps for them.
Vimeo has moved towards a unified API, which you can read about at http://developer.vimeo.com/api. Make sure to use the api through api.vimeo.com, not vimeo.com/api/rest/v2.
Vimeo has an official PHP library, with some very basic examples that you can see at http://github.com/vimeo/vimeo.php

Twitter api call no longer working after uploading Flex application

I have a Flex application that uses the Last.fm and Twitter api. After I uploaded the project to my webspace, the Twitter api call doesn't work anymore, but the Last.fm still works. My url still works:
var getTweetsUrl = "https://api.twitter.com/1/statuses/user_timeline.xml?screen_name=deftonesband&count=3"
This is the code used for the httpservice:
<s:HTTPService id="getTweetsService" url="{getTweetsUrl}" result="displayTweets(event)" fault="twitterFail(event)" resultFormat="e4x" />
Every time the fault event is fired, even though the url is correct. Anyone knows of this problem?
due to crossdomain policy of twitter.com (https://api.twitter.com/crossdomain.xml) you are not able to invoke twitter api from other domain without permission (locally there is no crossdomain check in flash player)
to get permission from twitter user you have to use oAuth
I think easiest way to implement oAuth for twitter api is to use Open Source library for AS3 called Tweetr:
http://wiki.swfjunkie.com/tweetr