0

Xamarin を使用して、Android Phone で .NET API を使用してビデオをアップロードしようとしています。認証できず、件名にエラーが表示されます。Xamarin のコードは次のとおりです。

https://github.com/xamarin/google-apis/blob/master/src/Android/Google.Apis.Android/Apis/Authentication/GoogleAuthenticator.cs

HttpScoop を使用しましたが、Web トラフィックがないようです。

私は Web アプリケーション ID を使用しています:

Web アプリケーションのクライアント ID

クライアントID:

* .apps.googleusercontent.com

電子メールアドレス:

* @developer.gserviceaccount.com

クライアント シークレット:

- *

リダイレクト URI: http://jmawebtechnologies.com

JavaScript の起源: http://jmawebtechnologies.com

Google Authenticator を作成する方法は次のとおりです。

GoogleAuthenticator Auth ()
{
return new Google.Apis.Authentication.OAuth2.GoogleAuthenticator (ClientID, new Uri ("http://jmawebtechnologies.com"),                                                                      Google.Apis.Youtube.v3.YoutubeService.Scopes.YoutubeUpload.ToString());
}
4

1 に答える 1