Hi everyone!

I need help width Spreadsheat API. The error is random, sometimes it
works and sometimes doesn't work

Execution of request failed:
http://spreadsheets.google.com/feeds/worksheets/0AsZ3Mk8JVC2-dFh1RUx5MFpBQzlybzVRMTVaZ1lqSVE/private/full
   en Google.GData.Client.GDataRequest.Execute()
   en Google.GData.Client.GDataGAuthRequest.Execute(Int32
retryCounter)
   en Google.GData.Client.GDataGAuthRequest.Execute()
   en Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase
baseEntry, GDataRequestType type, AsyncSendData data)
   en Google.GData.Client.Service.Insert(Uri feedUri, AtomEntry
newEntry, AsyncSendData data)
   en Google.GData.Client.Service.Insert[TEntry](Uri feedUri, TEntry
entry)
   en Google.GData.Client.Service.Google.GData.Client.IService.Insert
(AtomFeed feed, AtomEntry entry)
   en Google.GData.Client.AtomFeed.Insert[TEntry](TEntry newEntry)


The code in CSharp .Net width Google SpreadSheet API version 1.4.0.2.
is:

            SpreadsheetsService service = new SpreadsheetsService
("Test");
            service.setUserCredentials(<admin>, <pwdAdm>);

            Google.GData.Spreadsheets.SpreadsheetQuery query1 = new
Google.GData.Spreadsheets.SpreadsheetQuery();
            query1.Title = _"Autorizados";
            query1.Exact = true;
            SpreadsheetFeed feed1 = service.Query(query1);

            string Key = feed1.Entries[0].AlternateUri.ToString();
            Key = Key.Substring(Key.IndexOf("key=") + 4);

            WorksheetQuery query = new WorksheetQuery(Key, "private",
"full");
            query.Title = "Usuarios";
            query.Exact = true;
            WorksheetFeed feed2 = service.Query(query);

            if (feed2.Entries.Count > 0)
            {
                WorksheetEntry createdWorksheet = (WorksheetEntry)
feed2.Entries[0];
                CellFeed cellFeed = createdWorksheet.QueryCellFeed
(ReturnEmtpyCells.no);

                Console.Write(cellFeed[0, 1].Value);
            }



--

You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to google-docs-data-a...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-docs-data-apis?hl=en.


Reply via email to