I need a simple script which connect one drive using API and upload a zip file or pdf file.
The script should connect to one drive using API KEY, API SECTET, CODE/TOKEN.
the following conditions should be accomplished:
1. The token expiry date should be at least for one week. I will use the script to upload my local files to one drive without redirecting to any authentication page as I have acquired the token already.
2. You should show how to generate the token after it is expired or provide me separate script to get the token. If microsoft provides any platform to generate the token, it would be great.
The script should be in raw PHP and I will pay $10 for this with 5 star. :)