KoenZomers / OneDriveAPI

API in .NET Framework 4.8.0, .NET Core 3.1 and .NET 6.0 to communicate with OneDrive Personal and OneDrive for Business
Eclipse Public License 1.0
110 stars 34 forks source link

Is there a way to use it in console app? #22

Closed dzb87 closed 4 years ago

dzb87 commented 4 years ago

Hey, is there a way to use the library in console application? I mean without logging in browser and with no GUI at all.

Regards

KoenZomers commented 4 years ago

Yes, that will be possible. You would need a refresh token to authenticate and then use

oneDrive.AuthenticateUsingRefreshToken("yourrefreshtoken");

You could use the demo tool included in this code base to log in interactively once and get the refresh token from the fields at the bottom of the demo tool.

KoenZomers commented 4 years ago

Closing as no further feedback received