I have created a google spreadsheet and I want to access its contents
using java. I have created the following code:
public static void main(String[] args) throws Exception{

        URL feedUrl = new URL("");

                SpreadsheetService myService = new
SpreadsheetService("googleapps_spreadsheet");
                myService.setUserCredentials("[email protected]",
"purchase");
        SpreadsheetFeed resultFeed = myService.getFeed(feedUrl,
SpreadsheetFeed.class);

        System.out.println("Your Spreadsheet:");
        for(int i=0; i<resultFeed.getEntries().size(); i++){
                SpreadsheetEntry entry = resultFeed.getEntries().get(i);
                System.out.println("\t"+
entry.getTitle().getPlainText());

        }
    }

It not giving any results. Can somebody who has used google
spreadsheet with java before, please suggest what is the mistake in
the code.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en.

Reply via email to