zenpc / gdata-javascript-client

Automatically exported from code.google.com/p/gdata-javascript-client
0 stars 0 forks source link

Authentication is necessary to edit spreadsheet with a permission "Anyone who has the link can edit" by API #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Make a spreadsheet with permission "Anyone who has the link can edit"
2. Publish it.
3. Try to send /private/full request by 
google.gdata.client.GoogleService.getFeed(...)

What is the expected output? What do you see instead?
I expect to reach data (edit link of an entry) without authentication as like 
as if I wrote the URL in the web browser's link bar, I can get data back 
WITHOUT authentication.

What version of the product are you using? On what operating system?
JavaScript Client Library (v2.0) 
GData-Version=2.0

Please provide any additional information below.

By running the following sample code, I got the following error message: "feed 
URL is incorrect; feed requires authentication".

var service = new google.gdata.client.GoogleService('wise', 'XXXXXXX');   
var sheetlink = 
'https://spreadsheets.google.com/feeds/list/YYYYYYY/1/private/full';
service.getFeed(sheetlink, callbackfunc, handleError);

However if I authenticate before that everything is fine.
By the way, when  I use the 
'https://spreadsheets.google.com/feeds/list/YYYYYYY/1/private/full' in my 
browser, I can see the result (It does not work before also but thanks to the 
new updates of Google's ACL it works correctly now).

Related ISSUE: 
http://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=2603

Original issue reported on code.google.com by BNade...@gmail.com on 4 Oct 2011 at 9:45