google-drive-sdk

Getting started with google-drive-sdk

Remarks#

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.

Versions#

Version numberrelease date
v22012-06-27
v32015-12-14

Installation or Setup

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.

Documentation Samples
Google API Client Library for Java Java samples
Google API Client Library for JavaScript (beta) JavaScript samples
Google API Client Library for .NET .NET samples
Google API Client Library for Objective-C Objective-C samples
Google API Client Library for PHP (beta) PHP samples
Google API Client Library for Python Python samples

There are a number of other client libraries in early-stage of development a full list can be found at Google APIs Client libraries

List Files

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]
  ]
}

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow