I need a Java method which gives me a list with all YouTube watch urls (or video ids) uploaded on my own YouTube channel. Since private and unlisted videos are supposed to be included, authentication has to be given via username and password or OAuth 2.0
.
Also, I'm aware of the YouTube API but I still don't know how this can be done. Any working code snippets e.g. no vague descriptions like here because it's not useful like that when it all has to be automated.
I basically need a method like this:
public static List<String> getAllUploadedVideos(String channelUrl)
{
// use OAuth 2.0 to gain viewing permissions for the YouTube account
// get all uploaded videos
}
Here one can do search queries.
Based on the YouTube API and the sample code by Jeremy Walker.