Vimeo api to fetch videos by their uploaded date or title? - php

How can I fetch video using Vimeo API by their their or by their uploaded date?
Currently I am using vimeo.videos.getUploaded to fetch all the videos of a user but I am unable to pass parameters like title or date into that method call.
So please let me know how can I fetch videos of a user by video title or by uploaded date.

vimeo.video.getUploaded (and many other endpoints in the Vimeo API) allows you to provide a sort parameter of "oldest" or "newest".
You can experiment with this functionality via the playground :
https://developer.vimeo.com/apis/advanced/methods/vimeo.videos.getUploaded/playground

Related

Vimeo bulk upload and mysql match

I would like to know if on Vimeo PRO account i can use any method to store some info about a video in MySQL DB and match them with upload video.
The easiest thing i can guess is rename the video file with a random token and store it in my DB as primary key with video associated info, copy to dropbox the video and upload it.
But, as far as i know, it seems that uploaded video gets renamed,
I also need to do this in bulk on 2.000 videos.
Vimeo assigns each video a unique videoId. You can make a GET request to their API and pull a list of all videos with data on them. I built something similar.
We pull the video information and stored it in a table and used that table to populate a grid with the video data for a user to edit. Its described here: https://developer.vimeo.com/api/endpoints/videos#/{video_id}
Also check their vimeo google group for more information.

php get youtube user subscription channel videos

how can i use php to get youtube user subscription channel videos and display all the channel feeds, i want create a class or function where if i pass a user name the php class would retrieve the latest uploads / activities in the user subscribed channels and display the url plus the title and the image, also i want to be able to pass the title and url to other functions so that i can save it to database. on a another page i found this Pulling in YouTube Videos from Specific Channel but its for only one specific channel.
The relevant requests are for the newsubscriptionvideos feed in the YouTube GData API v2 or activities.list() in the newer YouTube Data API v3.
newsubscriptionvideos might not be natively support in the Zend GData client library (I don't see it mentioned in the developer's guide), so if you go that route, you should probably use alt=jsonc to get back an easy-to-parse JSON feed of the data. E.g, https://gdata.youtube.com/feeds/api/users/jeffposnicktest/newsubscriptionvideos?v=2&alt=jsonc
The alternative is to use v3's PHP client library to call activities.list().

Youtube API get video query

I've been reading youtube API in orde to find how could I retrieve videos and relavant data about them using a certain query.
I've found this page - https://developers.google.com/youtube/2.0/developers_guide_protocol_api_query_parameters
where there is an example of: https://gdata.youtube.com/feeds/api/videos?q=surfing&caption&v=2
My question is where should I use my API key ? I don't see any section for this in the query above.
Thanks.
For the v2 API, you only need your API key if you're uploading video.

Is it possible to Implement youtube channels uploaded videos list into website?

What I want to do is, to show uploaded videos list of my youtube channel to website's visitors.
Something like that. (Image take from youtube channel, I want to show exactly this way)
Don't want to create iframe. Can I fetch data from channels exact page with PHP or something else? I have no idea if it's possible with youtube api. Any suggestions?
Yes you can. The videos on a channel are essentially a user's so using the YouTube GData API you can make a call to http://gdata.youtube.com/feeds/api/videos?author=ahmednuaman (my videos for example).

Facebook Graph API and videos

Is it possible to request all the videos associated with a face book account? So I can loop through and echo them to the page. Sort of like getting the json data of an album that has all the images within this album. I have been using [Facebook Graph API for Video][1]
[1]: http://developers.facebook.com/docs/reference/api/video/ as a reference.
I have it working for the albums and images so when a photo is added to face book it updates the website. Now I want to do the same thing for the videos.
Any ideas would be great.
Thanks!
It does not appear the Graph API offers access to a list of videos. You would need to use FQL
https://developers.facebook.com/docs/reference/fql/
And query the video table
https://developers.facebook.com/docs/reference/fql/video/
For videos owned by a user. Note you'd have to keep track of the last time you queried and limit your query only for videos with a created_time after the last time you checked.

Categories