Getting started with google-drive-sdk

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