Can't Upload a Video to YouTube. Problem with Java Class files and service.setUserCredentials?
이전 댓글 표시
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)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Google에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!