私の問題は、私はGoogleのSpreadSheetでいくつかのことをしようとしています。しかし、私は "exampleCo-exampleApp-1"とは何か、そして私のGoogle Documentsアカウントでその情報をどこで見つけるかについては理解していません。私はそれのapplicationNameから理解何GoogleのAPI .NET SpreadSheet Connection
SpreadsheetsService service = new SpreadsheetsService("exampleCo-exampleApp-1");
は、それは「アプリケーション」の名前が続き、いくつかの種類のバージョンで仕上げる「COMPAGNY」名で始まるということですか?
----フォローアップ---- "exampleCo-exampleApp-1"はちょうど名前、私が書いているアプリケーションの名前です(確認が必要です)...
本当の問題は、私はそれが失敗したサーバーに接続する必要のあるコマンドを作るたびに...
がスタック杭はそのように見えるということです。
(私が行うとき:サービス。クエリ(クエリ);)
at Google.GData.Client.GDataRequest.Execute()
at Google.Gdata.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
System.Exception: Error getting response stream (Write: The authentication or decryption has failed.):SendFailure
System.Exception: the authentication or decryption has failed.
System.Exception: Invalid certificate received from server. Error code: 0xffffffff800b010a
(私が行うとき:service.QueryClientLoginToken();あなたのヒントについて
using Google.GData.Client;
using Google.GData.Extensions;
using Google.GData.Spreadsheets;
class MainClass
{
public static void Main (string[] args)
{
SpreadsheetsService service = new SpreadsheetsService("testAppName");
service.setUserCredentials("[email protected]", "xxxxx");
string token = service.QueryClientLoginToken();
Console.WriteLine("token = {0}", token);
SpreadsheetQuery query = new SpreadsheetQuery();
SpreadsheetFeed feed = service.Query(query);
Console.WriteLine ("The spreadsheets List:");
foreach(SpreadsheetEntry entry in feed.Entries)
{
Console.WriteLine("entry: " + entry.Title.Text);
}
Console.WriteLine ("The End!");
}
}
ありがとう:)
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetRequestStream()
at Google.GData.Client.Utilities.QueryClientLoginToken(Google.Gdata.Client.GDataCredentials gc, System.String serviceName, System.String applicationName, Boolean fUseKeepAlive, System.Uri clientLoginHandler)
System.Exception: The authentication or decryption has failed.
System.Exception: Invalid certificate received from server. Error code: oxffffffff800b010a
は、ここに私のテストコードです!