YOUTUBE에 외부앱에서 동영상 자동 등록
조회수 880회
유튜브 동영상 업로드를 외부 앱에서 가능하게 하려고 합니다 google open api를 이용해서 https://developers.google.com/youtube/v3/code_samples/
외부앱에서 유튜브에 업로드 시 구글 로그인이 필요한데 원하는 아이디로 자동 로그인이 가능하도록 아이디값과 비밀번호 값을 넘기는 것이 가능한지 알 수 있을까요
-
(•́ ✖ •̀)
알 수 없는 사용자
1 답변
-
링크 붙여주신 문서에 있습니다.
# The CLIENT_SECRETS_FILE variable specifies the name of a file that contains # the OAuth 2.0 information for this application, including its client_id and # client_secret. You can acquire an OAuth 2.0 client ID and client secret from # the Google Developers Console at # https://console.developers.google.com/. # Please ensure that you have enabled the YouTube Data API for your project. # For more information about using OAuth2 to access the YouTube Data API, see: # https://developers.google.com/youtube/v3/guides/authentication # For more information about the client_secrets.json file format, see: # https://developers.google.com/api-client-library/python/guide/aaa_client_secrets
client_id
와client_secret
이 포함된 JSON 파일을CLIENT_SECRETS_FILE
변수에 정해 줘야 합니다. https://console.developers.google.com/ 에 가셔서 OAuth 2.0 클라이언트 ID와 비밀키를 받으실 수 있는데, 이때 해당 프로젝트가 YouTube Data API를 사용하고 있는지 확인을 해보세요. JSON 파일은 대충 이렇게 생겼습니다. https://developers.google.com/api-client-library/python/guide/aaa_client_secrets문서를 더 잘 읽어보세요.
댓글 입력