Getting started with google-drive-sdk

Download google-drive-sdk eBook

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.

DocumentationSamples
Google API Client Library for JavaJava samples
Google API Client Library for JavaScript (beta)JavaScript samples
Google API Client Library for .NET.NET samples
Google API Client Library for Objective-CObjective-C samples
Google API Client Library for PHP (beta)PHP samples
Google API Client Library for PythonPython 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]
  ]
}
 

Stats

40 Contributors: 2
Tuesday, January 31, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook