Can't Upload a Video to YouTube. Problem with Java Class files and service.setUserCredentials?
Ältere Kommentare anzeigen
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)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Google finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!