Я запускаю код пустой?
какой из них правильный?
1 - DEVELOPER_KEY = "AIzaSyxxxxxxxxxxxxxxxxxxx"
2 - DEVELOPER_KEY = "779749880288-xxxxxxxxxxxxxxx.apps.googleusercontent.com "
" ""
import os
import googleapiclient.discovery
from googleapiclient.http import MediaFileUpload
def main():
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
api_service_name = "youtube"
api_version = "v3"
DEVELOPER_KEY = "AIzaSyCtHy6xxxxxxxxxxxxxxxxxxxxx"
youtube = googleapiclient.discovery.build(
api_service_name, api_version, developerKey=DEVELOPER_KEY)
request = youtube.videos().insert(
part="snippet,status",
body={
"snippet": {
"categoryId": "22",
"description": "Description of uploaded video.",
"title": "Test video upload."
},
"status": {
"privacyStatus": "private"
}
},
media_body=MediaFileUpload("/Users/mac/Desktop/Projelerim/dos/video.avi")
)
response = request.execute()
print(response) """