I'm trying to make it possible to upload YouTube videos on an external app using google open api https://developers.google.com/youtube/v3/code_samples/
When uploading from an external app to YouTube, Google login is required May I know if it is possible to pass the ID value and password value so that automatic login with the desired ID is possible?
google youtube login
It is located in the document you linked.
# 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
The JSON file containing client_id
and client_secret
must be assigned to the CLIENT_SECRETS_FILE
variable. Go to https://console.developers.google.com/ and get your OAuth 2.0 client ID and secret key, and make sure your project is using the YouTube Data API. The JSON file looks like this. https://developers.google.com/api-client-library/python/guide/aaa_client_secrets
Read the document better.
© 2024 OneMinuteCode. All rights reserved.