google-picker
v0.1.1
Published
Simple google picker package.
Downloads
250
Readme
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
clientId
your application's client idapiKey
your developer keyscope
authorization scope. defaults to 'https://www.googleapis.com/auth/drive' (full access to google drive)origin
the origin of your application. Defaults to window.location.protocol + '//' + window.location.hostlocale
defaults to 'en' (english)views
refer to https://developers.google.com/picker/docs/referencefeatures
refer to https://developers.google.com/picker/docs/reference