Published on December 22, 2015 by Google

In a short dozen minutes, Google engineer Wesley Chun guides you through this jam-packed episode featuring an introduction to the new Drive API (v3), an interview with a Google Drive engineer about the API design, and a code walkthrough of real source code you can use today! This time, it’s a command-line script that performs Drive file uploads & downloads, presented first in the original API (v2) followed by a how-to segment on migrating it step-by-step to the new API (v3). In addition, the uploading segment includes the option of converting to Google Apps formats while the download portion covers exporting to alternative formats such as PDF®.

Links from the episode:

* Google Drive new API launch: goo.gl/cR151b
* Google Drive API original launch: googledevelopers.blogspot.com/2012/04/introducing-google-drive-and-google.html
* Client Library supported languages: developers.google.com/api-client-library
* Google APIs common code walkthrough: goo.gl/KMfbeK
* Migrating from run() to run_flow(): plus.google.com/+GoogleDevelopers/posts/YRbdd2CHupr
* Optimizing Drive API calls: googleappsdeveloper.blogspot.com/2013/06/optimizing-drive-api-calls.html
* Google Drive API documentation: developers.google.com/drive
* Code Samples blogpost: goo.gl/A3kb6o
* Launchpad Online developer video series: goo.gl/kFMUa6
* Listing your files in Google Drive: goo.gl/ZIgf8k
* File Storage in the Cloud: youtu.be/vyIap827rHs
* Accessing Google APIs: goo.gl/KMfbeK

Subscribe to the Google Developers channel at goo.gl/mQyv5L

Leave a Reply

60 Comments on "Google Drive API: Uploading & Downloading Files"

Notify of
avatar

mogum loyi mogum Loyi
Guest
mogum loyi mogum Loyi
1 month 10 days ago

Whatever it May be it's a better lesson for everyone's to understand the living stength of human beings and a life of others need.

mogum loyi mogum Loyi
Guest
mogum loyi mogum Loyi
1 month 10 days ago

Whatever it May be it's a better lesson for everyone's to understand the living stength of human beings and a life of others need.

H41822
Guest
H41822
3 months 12 days ago

Is it possible to dowload the converted video files instead of the original?

Young Nam
Guest
Young Nam
3 months 23 days ago

WHY DIS CODE NOT ON DOCUMENTATION!?!?!?!?!?!!?!?!?!!?

Noobionic
Guest
Noobionic
4 months 10 days ago

I was waiting for him to say python

Sharath Chandra
Guest
Sharath Chandra
4 months 22 days ago

Is there a video to achieve same using Javascript?

coderx3
Guest
coderx3
5 months 21 days ago

this api is bat shit insane .

Ja Ke
Guest
Ja Ke
6 months 20 days ago

see at 3:16.

Marina Doria
Guest
Marina Doria
6 months 26 days ago

I run the same code and I had these errors: Can you help me please?Traceback (most recent call last): File "c:update_costsuploader.py", line 32, in <module> res = DRIVE.files().create(body=metadata, media_body=filename).execute() File "C:UsersllollAnaconda3libsite-packagesgoogleapiclientdiscovery.py", line 811, in method mimetype=media_mime_type) File "C:UsersllollAnaconda3libsite-packagesoauth2client_helpers.py", line 133, in positional_wrapper return wrapped(*args, **kwargs) File "C:UsersllollAnaconda3libsite-packagesgoogleapiclienthttp.py", line 550, in _init_ fd = open(self._filename, 'rb')FileNotFoundError: [Errno 2] No such file or directory: 'hello.txt'

Thoại Ngô
Guest
Thoại Ngô
7 months 11 days ago

hi, how get link mp3 in google drive?r, thanks admin

1 2 3 5
wpDiscuz