Skip to content

zhangtasdq/cordova-plugin-onedrivetool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-onedrivetool

download file from onedrive approot or upload file to onedrive approot, Just a simple encapsulation of onedrive-sdk-android

Example

Check file exist

let OneDriveTool = cordova.plugins.OneDriveTool;

OneDriveTool.isFileExists(fileName, clientId, scope, (fileExistError, isExist) => {
    if (fileExistError) {
        ...
    } else {
        ...
    }
});

Upload file

let OneDriveTool = cordova.plugins.OneDriveTool;

OneDriveTool.saveFile(fileName, content, clientId, scope, (saveError) => {
    if (saveError) {
        ...
    } else {
        ...
    }
});

Download File

let OneDriveTool = cordova.plugins.OneDriveTool;

OneDriveTool.downloadFile(fileName, clientId, scope, (downloadError, data) => {
    if (downloadError) {
        ...
    } else {
        ...
    }
});

Thanks

onedrive-sdk-android

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published