Skip to content Skip to sidebar Skip to footer

Api V3 Youtube Upload

Since the new API came out my PHP upload script does not work (Developers key etc) and I have tried a variety of ways to use the YouTube API V3 to upload a video to my account on Y

Solution 1:

You might have missed the Upload a Video guide in the Youtube docs. It uses the Videos.insertttps://developers.google.com/youtube/v3/docs/videos/insert) method to upload the video.

Here's a snippet from the guide:

# Call the API's videos.insert method to create and upload the video.
  insert_request = youtube.videos().insert(
    part=",".join(body.keys()),
    body=body,
     media_body=MediaFileUpload(options.file, chunksize=-1, resumable=True)
  )
resumable_upload(insert_request)

More samples are found here: Python Code Samples.

Post a Comment for "Api V3 Youtube Upload"