0.1.1 • Published 11 years ago
google-picker v0.1.1
google-picker
Dead simple google picker library.
Usage
var pick = require('google-picker')({
clientId: <your client id>,
apiKey: <your developer api key>
});
pick({views: ['DocsView()']}, function(err, files) {
if(err) throw err;
// files
});Config
clientIdyour application's client idapiKeyyour developer keyscopeauthorization scope. defaults to 'https://www.googleapis.com/auth/drive' (full access to google drive)originthe origin of your application. Defaults to window.location.protocol + '//' + window.location.hostlocaledefaults to 'en' (english)viewsrefer to https://developers.google.com/picker/docs/referencefeaturesrefer to https://developers.google.com/picker/docs/reference