1
我正在使用Youtube api v3并需要FileDataStore(Google.Apis.Util.Store.FileDataStore)。我有所有必要的使用指令和NuGet包,但我仍然得到“无法找到类型或名称空间名'FileDataStore”错误。UWP支持Google的FileDataStore吗?
相同的代码同时适用于Winforms和WPF。 UWP中不支持FileDataStore?有没有解决方法?
UserCredential credential;
using (var stream = new FileStream("client_secrets.json", FileMode.Open, FileAccess.Read))
{
credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(
GoogleClientSecrets.Load(stream).Secrets,
// This OAuth 2.0 access scope allows for full read/write access to the
// authenticated user's account.
new[] { YouTubeService.Scope.Youtube },
"user",
CancellationToken.None,
new FileDataStore(this.GetType().ToString())
);
}
谢谢。我很惊讶UWP尚未得到支持。 –
我们遇到了两个不同库之间向后兼容的问题。它列在要做的事情上,但我们没有时间框架支持。 – DaImTo