我想上傳視頻到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