Page 1 of 1

API for Microsoft OneDrive

Posted: Sun Aug 28, 2022 7:40 pm
by geraldoj
Can somebody tell if there is an API for Microsoft OneDrive ported to Raspberry Pico W MicroPython?
I need to save a log file at Onedrive and have no idea how to do it... Any hints?

Re: API for Microsoft OneDrive

Posted: Sun Aug 28, 2022 10:14 pm
by jimmo
There's a REST API - https://docs.microsoft.com/en-us/onedri ... aph-online

You should likely be able to access this using urequests and json.

This is for php but will give you a bit of an overview: https://onlinecode.org/onedrive-rest-api-using-php/

Re: API for Microsoft OneDrive

Posted: Wed Sep 07, 2022 12:59 pm
by geraldoj
Hi Jimmo, tks for the hint. Unfortunatelly I am a beginner on coding...
Is this complatible with micropython or just json??

Re: API for Microsoft OneDrive

Posted: Wed Sep 07, 2022 11:27 pm
by jimmo
A REST API is a protocol that works over HTTP and uses JSON to format messages. You can use it from any language that supports HTTP and JSON (including micropython).