google-drive
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -113,2 +113,42 @@ | ||
} | ||
/* | ||
Changes | ||
For Changes Resource details, see below about Resource representations. | ||
Method HTTP request Description | ||
URIs relative to https://www.googleapis.com/drive/v2, unless otherwise noted | ||
get GET /changes/changeId Gets a specific change. | ||
list GET /changes Lists the changes for a user. | ||
Resource representations | ||
Representation of a change to a file. | ||
{ | ||
"kind": "drive#change", | ||
"id": long, | ||
"fileId": string, | ||
"selfLink": string, | ||
"deleted": boolean, | ||
"file": files Resource | ||
} | ||
Property name Value Description Notes | ||
kind string This is always drive#change. | ||
id long The ID of the change. | ||
fileId string The ID of the file associated with this change. | ||
selfLink string A link back to this change. | ||
deleted boolean Whether the file has been deleted. | ||
file nested object The updated state of the file. Present if the file has not been deleted. | ||
*/ | ||
resources.changes = function(changeId) { | ||
return { | ||
list: function(params, cb) { | ||
var p = extract_params(undefined, params, cb); | ||
return make_request(p).get(base_uri + '/changes', p.cb); | ||
}, | ||
get: function(params, cb) { | ||
var p = extract_params(undefined, params, cb); | ||
return make_request(p).get(base_uri + '/changes/' + changeId, p.cb); | ||
} | ||
} | ||
} | ||
@@ -115,0 +155,0 @@ |
{ | ||
"name": "google-drive", | ||
"description": "Node.js library for accessing Google Drive's API at <https://developers.google.com/drive/v2/reference>", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Nick Baugh <niftylettuce@gmail.com>", | ||
@@ -14,2 +14,6 @@ "contributors": [ | ||
"email": "hello@coggle.it" | ||
}, | ||
{ | ||
"name": "Zlati Pehlivanov", | ||
"email": "zlati.pehlivanov@gmail.com" | ||
} | ||
@@ -16,0 +20,0 @@ ], |
@@ -86,2 +86,8 @@ | ||
googleDrive(token).files(id).untrash(callback) | ||
// Changes - List | ||
googleDrive(token).changes.list(params, callback) | ||
// Changes - Get | ||
googleDrive(token).chances.get(params, callback) | ||
``` | ||
@@ -94,2 +100,3 @@ | ||
* healdessme <hello@coggle.it> (http://coggle.it) | ||
* Zlati Pehlivanov <zlati.pehlivanov@gmail.com> | ||
@@ -96,0 +103,0 @@ |
11805
135
126