Can't Upload a Video to YouTube. Problem with Java Class files and service.setUserCredentials?
Show older comments
I am trying to upload a video to youtube from matlab using this spiffy code: http://www.mathworks.com/matlabcentral/fileexchange/19258-upload-a-video-to-youtube%E2%84%A2.
I updated the clientID and the developerKey. But I still get the same error at service.setUserCredentials(username, password). I am using a gmail account and password, which should be a valid login. I tried several and I still can't get this code to work. Any help would be appreciated.
My feeling is that I need use a different login class (GoogleService.setUserCredentials). And call these classes instead getAuthToken, setUserCredentials in GoogleAuthTokenFactory.
Here is the error message.
Java exception occurred: com.google.gdata.util.AuthenticationException: Error connecting with login URI
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:489)
at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:346)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:362)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:317)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:301)
Accepted Answer
More Answers (0)
Categories
Find more on Google in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!