API for Microsoft OneDrive

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
geraldoj
Posts: 4
Joined: Tue Aug 16, 2022 12:36 am

API for Microsoft OneDrive

Post by geraldoj » Sun Aug 28, 2022 7:40 pm

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?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: API for Microsoft OneDrive

Post by jimmo » Sun Aug 28, 2022 10:14 pm

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/

geraldoj
Posts: 4
Joined: Tue Aug 16, 2022 12:36 am

Re: API for Microsoft OneDrive

Post by geraldoj » Wed Sep 07, 2022 12:59 pm

Hi Jimmo, tks for the hint. Unfortunatelly I am a beginner on coding...
Is this complatible with micropython or just json??

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: API for Microsoft OneDrive

Post by jimmo » Wed Sep 07, 2022 11:27 pm

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).

Post Reply