Reputation: 1025
I'm following this article,
https://msdn.microsoft.com/en-us/magazine/mt632271.aspx
It references OneDriveClientExtensions which I can't find anywhere or any mention of where it might be. Any ideas?
Nick.
Upvotes: 2
Views: 612
Reputation: 9461
If you use GetClientUsingOnlineIdAuthenticator method, then
replace
OneDriveClientExtensions.GetClientUsingOnlineIdAuthenticator(Scopes)
with
var onlineIdProvider = new OnlineIdAuthenticationProvider(Scopes); await onlineIdProvider.RestoreMostRecentFromCacheOrAuthenticateUserAsync(); var client = new OneDriveClient("https://api.onedrive.com/v1.0",onlineIdProvider);
Upvotes: 1
Reputation: 2710
"OneDriveClientExtensions" is a part of OneDriveSDK version 1.x, but latest 2.x does not have it. And, the article of MSDN magazine is based on OneDriveSDK version 1.x.
To follow the article, you need to pick the SDK 1.x from nuget.
https://www.nuget.org/packages/Microsoft.OneDriveSDK/1.2.0
Upvotes: 1