Adding a file that saved in Onedrive to API request

80 Views Asked by At
RestSharp.RestRequest.AddFile

this allows to add a locally saved file to the REST request. But how it can be done for a file that saved in a cloud location. I'm creating an add-in for Word 365. And also using Office javascript API. Inside add-ins web project I have a C# controller to make a POST request to another API endpoint. For that POST request I need to add the saved Word file in Onedrive. I tried with RestSharp.RestRequest.AddFile method but didn't work.

0

There are 0 best solutions below