The Google Drive API and Google Drive SDK platform gives developers access to a group of APIs along with client libraries, language-specific examples, and documentation to help you develop apps that integrate with Drive.
The core functionality of Drive apps is to download and upload files in Google Drive. However, the Drive platform provides a lot more than just storage. This page describes some of that functionality and points you to resources for building it into your app.
Version number | release date |
---|---|
v2 | 2012-06-27 |
v3 | 2015-12-14 |
In order to access the Google drive API or Google drive SDK you must first register your application on Google Developer console and enable the google drive API.
After that its a good idea to use one of the official google client libraries to access the API.
There are a number of other client libraries in early-stage of development a full list can be found at Google APIs Client libraries
As most of the information contained within Google drive is private user data. You must have an access token in order to access the information. Access tokens can be retrieved via the Oauth2 authentication process.
GET https://www.googleapis.com/drive/v2/files?access_token={Valid Access Token}
Response
{
"kind": "drive#fileList",
"etag": etag,
"selfLink": string,
"nextPageToken": string,
"nextLink": string,
"items": [
[files Resource][2]
]
}