[]
To configure OneDrive Web API Service and perform different operations, follow these steps:
Register your app on OneDrive. For registering app, see Register your app.
Generate an access token. For detailed information on how to obtain access token, see Supported Authentication flows.
Create a new C1 Web API Application and make sure the following references are added to the application:
C1.Web.Api.dll
C1.Web.Api.Cloud.dll
OneDrive.Api
Register the OneDrive cloud service using the following code:
app.UseStorageProviders().AddOneDriveStorage("OneDrive", “your one drive AccessToken”);
You can choose to perform various operations, such as listing data, uploading, deleting or downloading a file, after registering the cloud service. To understand how to perform these operations, see Perform Operations.