Hi Eric, almost, but not completely. :D
After logging in, I can search for a specific file, which is actually returned, but when I try to get a list of the work sheets of that file, I get the following error: "Request via script load timed out. Possible causes: feed URL is incorrect; feed requires authentication" The code is pretty much the same as above, except that it now handles the document feed: [some code] var scope = "http://docs.google.com/feeds/"; var docListUrl = "http://docs.google.com/feeds/documents/private/ full"; var listService; function handleFileFeed (feedRoot) { var requestWorksheetsUrl = feedRoot.feed.entry[0].link[1].href; listService.getFeed (requestWorksheetsUrl, handleWorksheetsFeed, handleError); } function fetchData () { listService = new google.gdata.client.GoogleService ('google- service', 'gdata-doclist-test'); if (google.accounts.user.checkLogin (scope)) { requestFileUrl = docListUrl + "?title=" fileName + "&title- exact=true"; listService.getFeed (requestFileUrl, handleFileFeed, handleError); } else { token = google.accounts.user.login (scope); } } [/some code] I guess it's a scope problem? Using 'docs.google.com' as scope probably doesn't allow me to access 'spreadsheets.google.com'. But if I set the scope to spreadsheets.google.com, it doesn't allow me to load the file list from docs.google.com. If I try to get the file list from spreadsheets.google.com, the handleError function is called with the response message "response timed out". I also tried to log in to both scopes, but that didn't work either. Any idea of how to get that working? :) Gratefully, Lasheimok On Dec 4, 3:41 am, "Eric (Google)" <[EMAIL PROTECTED]> wrote: > Hey Lasheimok, > > I think you have the right idea, and your code looks right to me. > So when you come back from AuthSubJS, your token is upgraded > properly? (the page refreshes and the #TOKENBVALUE is removed from > the URL) > It may be that you're querying a feed before the token cookie has been > set. > > Also try deleting cookies and running the app again. > > Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
