我想上传视频到YouTube
,但不知何故它不在Xamarin.Forms (Portable)
项目工作。有没有办法通过Xamarin.Forms (Portable)
如何上传视频到YouTube [Xamarin.Forms(便携式)]
var initializer = new GoogleAuthorizationCodeFlow.Initializer
{
ClientSecrets = new ClientSecrets
{
ClientId = Constants.API.Google.ClientID,
ClientSecret = Constants.API.Google.ClientSecret
},
Scopes = new[] { YouTubeService.Scope.Youtube }
};
var flow = new AuthorizationCodeFlow(initializer);
TokenResponse token = flow.LoadTokenAsync("user", CancellationToken.None).Result;
但每次我在TokenResponse token
越来越空,上传0的影片,我不知道我应该在的地方user
传递flow.LoadTokenAsync("user", CancellationToken.None)
谢谢。
我建议你在客户端库上发布这个问题。 https://github.com/google/google-api-dotnet-client/issues – DaImTo