Gists This is a sample script for retrieving the list of all emails of Microsoft account and putting them to Google Spreadsheet using Google Apps Script. I updated OnedriveApp to v1.2.0 by adding 1 method for retrieving the access token and 7 methods for managing emails of Microsoft account. By this, the emails got to be able to be gotten and sent using Microsoft account using OnedriveApp with Google Apps Script.
OnedriveApp was updated to v1.2.0. v1.2.0 (October 4, 2021) 1 method for retrieving the access token and 7 methods for managing emails of Microsoft account were added. By this, the emails got to be able to be gotten and sent using Microsoft account using OnedriveApp with Google Apps Script. GitHub of OnedriveApp
OnedriveApp was updated to v1.1.2. v1.1.2 (September 29, 2021) A bug of method of uploadFile was removed. By this, the files except for Google Docs files can be uploaded to OneDrive. GitHub of OnedriveApp
OnedriveApp was updated to v1.1.1. I have to apologize you and all users. I had forgot that it added setProp(). I could notice about this by reporting at here. I would like to report because I could remove this bug. GitHub of OnedriveApp
OnedriveApp was updated to v1.1.0. From this version, retrieving access token and refresh token became more easy. GitHub of OnedriveApp
OnedriveApp was updated to v1.0.2. Moved the instance of PropertiesService.getScriptProperties() to outside of this library. When there is the PropertiesService.getScriptProperties() inside the library, it was found that the parameters that users set was saved to the library. So this was modified. I’m sorry that I couldn’t notice this situation. GitHub of OnedriveApp
OnedriveApp was updated to v1.0.1. Added a method for retrieving access token and refresh token using this library. By added this method, OneDrive APIs can be used by only this library. GitHub of OnedriveApp
This is a library of Google Apps Script for using Microsoft OneDrive. Feature This library can carry out following functions using OneDrive APIs. Retrieve file list on OneDrive. Delete files and folders on OneDrive. Create folder on OneDrive. Download files from OneDrive to Google Drive. Upload files from Google Drive to OneDrive. Demo You can see the detail information here https://github.com/tanaikech/OnedriveApp
Gists Upload contents for an item on OneDrive In order to use this script, please retrieve client id, client secret and refresh token before. About this, you can see the detail information at https://gist.github.com/tanaikech/d9674f0ead7e3320c5e3184f5d1b05cc. 1. Simple item upload This is for the simple item upload is available for items with less than 4 MB of content. The detail information is https://dev.onedrive.com/items/upload_put.htm. var fs = require('fs'); var mime = require('mime'); var request = require('request'); var file = '.
Gist Overview This GAS sample is for retrieving access token to use OneDrive APIs using Google Apps Script. In this script, the authorization code is automatically retrieved. Demo Usage In order to use this, both accounts of Google and OneDrive (MSN) are required. Google side Copy and paste the sample script to your script editor. You can use the standalone script for this. Deploy Web Apps. On the Script Editor File -> Manage Versions -> Save New Version Publish -> Deploy as Web App -> At Execute the app as, select “your account” -> At Who has access to the app, select “Only myself” -> Click “Deploy” -> Copy URL of “latest code” (This is important!