cx.google.drive
Provides a wrapper around Google Drives v3 REST api.
Getting Started
This part describes how to load the cx.google.* modules and bootstrap a angular 1.x application. Add cx.google.drive to you project.
Via npm:
$ npm install --save cx.google.drive
cx.google.drive
uses SystemJS as module loader. This means that we need to do a few things with our AngularJS application to get it to load in the correct order.
(index.html)
1. Add these modules to your html
ng-app
directive from you page.
2. Prevent angular from manually bootstrap the application. Remove any SystemJS
about cx/google/drive
.
3. Tell
4. Load cx.google.core and cx.google.drive then manually bootstrap your application.
cx.google.*
Example use with a angular 1.x service to that consumes Check if a user is authorized or not. If not logg them in.
angular ; angular
Example of listing files and get a single file
angular
Contributing
We'd love for you to contribute to our source code and to make it even better than it is today!
Make sure you read the Contributing Guide first.
Developing
Clone this repository, install the dependencies and simply run gulp
.
$ npm install -g gulp
$ npm install
$ gulp
To view example (after above commands have run)
$ npm start
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.