4

I'm trying to upload video to youtube programmatically. I tried with

YouTubeService service = new YouTubeService(clientID,developer_key);
service.setUserCredentials("email", "password");

But it throws ServiceException stating that
com.google.gdata.util.AuthenticationException: Error connecting with login URI
How to proceed ?

Narendra Singh
  • 3,990
  • 5
  • 37
  • 78
Joseph
  • 1,060
  • 3
  • 22
  • 53

1 Answers1

3

It seems like you didn't set up your authentication.

I suggest to use Data API v3. Here's a great java UPLOAD example.

I also open sourced an Android upload example (YouTube Direct Lite) using ServiceIntent. Feel free to check it out.

Ibrahim Ulukaya
  • 12,767
  • 1
  • 33
  • 36