In youtube
How do i get the id of the latest uploaded video (the one that comes in the url like v=....) of a channel to which Im subscribed, for embeded
im using php in my server side
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
As of April 20, 2015, it looks like the answer mentioned above may no longer work. Here's an example using a YouTube Channel ID (can be found in the source of a Channel page.)
Here's a example using the YouTube RSS feeds,
simplexml_load_file
,parse_url
, andparse_str
.Same here as with Greg Brendel. YT did make some changes: "As we upgrade the YouTube Data API to bring more features, we’ll begin shutting down the old version on April 20, 2015. This will result in the current YouTube app not working on certain device models from 2012 and older."
https://support.google.com/youtube/answer/6098135?p=yt_devicesupport&hl=en&rd=1
Here's how to do it via the YouTube API once you set up your API Key.
Generating your API Key: