我想利用Google Data Api 在程序中实现创建的SpreadSheet文档。目前了解到有两种方式:直接命名或者上传一个
SpreadSheet文档。我想实现前者:通过输入文档名字创建新的SpreadSheet,但是总报错403错误:“远程服务器返回错误:
(403) 已禁止。”。请高手们给我指出问题所在:
__________________________________________________________________________

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);
___________________________________________________________________________________
其中:spreadsheetFeedUri 也就是query类中的BaseAddress属性:query.BaseAddress,我直接写上去
了。
可是,为什么我不能创建成功呢?我用其中的用户名和密码登录后,可以直接创建新的,但用程序为何不能成功
?
--~--~---------~--~----~------------~-------~--~----~
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-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to