one-drive-picker
Angular directive that interact with the OneDrive Picker API :
Requirements: AngularJS 1.4+
Demo
Installation
- Using Bower (recommended)
bower install angular-onedrive-picker --save
OR
npm install angular-onedrive-picker --save
- Manually
Download https://github.com/samarhaider/angular-one-drive-picker/archive/master.zip
Usage
- Include OneDrive refefence to SDK
- Include the OneDrive Picker as a dependency for your app
angular
-
Configure the plugin (see below configuration section)
-
Create a scope to handle files that will be selected
angular ;
- Add the directive to your HTML element
Open my OneDrive Drive
- That's it, you're done!
Configuration
In order to work, OneDrive Picker needs to connect to the OneDrive API using an application client ID and redirect URI. For more information on how to create an application, please refer to https://apps.dev.microsoft.com/#/appList. To do so, you'll need to configure the app.
Using configure(options)
angular
Callbacks
The directive provide you 3 callbacks that you can use in order to work with the Picker.
success, error and cancel
This callback is triggered after you select files and click on the select
button from the Picker.
angular ;
Open my OneDrive Drive
License
Licensed under the MIT license