削除したいくつかの機能を使用して Oauth2 トークンを取得しています: https://code.google.com/p/google-api-python-client/source/browse/#hg%2Foauth2client
私は試した:
yt_service = gdata.youtube.service.YouTubeService()
yt_service.developer_key = YOUTUBE_DEV_KEY
yt_service.access_token = FRESH_OAUTH2_ACCESS_TOKEN
yt_service.client_id = YOUTUBE_OAUTH2_CLIENT_ID
yt_service.email = YOUTUBE_USER_EMAIL
yt_service.password = YOUTUBE_USER_PASSWORD
yt_service.source = YOUTUBE_DEV_SRC
yt_service.ProgrammaticLogin()
GetFormUploadToken
しかし、 callまたはを適切に取得する方法がわかりませんUpdateVideoEntry
。以前は a だけを使用してdeveloper_key
いましたが、動作していました ( を使用gdata.youtube.service.YouTubeService()
)。
私もこの例を使用してみましたが、コメントがあまりなく、ドキュメントも良くありませんでした: https://code.google.com/p/youtube-api-samples/source/browse/samples/python/ update_video.py
簡単に変えてみました
build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION,
http=credentials.authorize(httplib2.Http()))
に
build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION,
ACCESS_TOKEN=current_access_token)
しかし、それが何であるかわからないと不平を言うだけACCESS_TOKEN
です。