Try http://docs.google.com/feeds/... as the URI.
On Wed, Jul 29, 2009 at 1:46 AM, ForestGump <[email protected]> wrote: > > I'm trying to create a new SpreadSheet in my codes with the Google > Data Api, But I get the 403 Error: the remote service forbidden! > Could you help me to find the error in the codes? > > ______________________________________________________________________________________ > String strSheetName = (txtSpreadSheetName.Text).Trim(); > GAuthSubRequestFactory authFactory = new > GAuthSubRequestFactory("writely", "Spreadsheet-GData-Sample-App"); > Google.GData.Documents.DocumentsService services = new > Google.GData.Documents.DocumentsService("Spreadsheet-GData-Sample- > App"); > > new Google.GData.Documents.DocumentsService > (authFactory.ApplicationName); > services.RequestFactory = authFactory; > services.setUserCredentials(this.usernameTextBox.Text, > this.passwordTextBox.Text); > > SpreadsheetEntry newSpreadSheetEntry = new SpreadsheetEntry > (); > newSpreadSheetEntry.Title.Text = strSheetName; > Uri spreadsheetFeedUri = new Uri("http:// > spreadsheets.google.com/feeds/spreadsheets/private/full"); > service.Insert(spreadsheetFeedUri , newSpreadSheetEntry); > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---
