title: Python Youtube Api Developer Key
body: <p>I'm running the code is coming blank ?</p>
  
  <p>which one is right ?</p>
  
  <p>1 - DEVELOPER_KEY = "AIzaSyxxxxxxxxxxxxxxxxxxx"</p>
  
  <p>2 - DEVELOPER_KEY = "779749880288-xxxxxxxxxxxxxxx.apps.googleusercontent.com"</p>
  
  <p>"""</p>
  
  <pre><code>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) """
  </code></pre>