Hi Paul, Each call to getFeed() returns a page of up to 100 results, so you have to paginate through the results as documented at:
http://code.google.com/apis/documents/docs/3.0/developers_guide_java.html#pagingThroughResults Please note that this forum is for questions related to the Domain Management APIs, if you need help with the DocumentsList API you should try with the dedicated forum: http://code.google.com/apis/documents/forum.html Thanks Claudio On Mon, Jan 30, 2012 at 9:19 PM, paul william ford < [email protected]> wrote: > my current code is as follows and returns only 100 rows instead of over > 1000+ documents. Thoughts??? > > GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); > oauthParameters.setOAuthConsumerKey(sourceConsumerKey); > oauthParameters.setOAuthConsumerSecret(sourceConsumerSecret); > oauthParameters.setOAuthToken(sourceAccessToken); > oauthParameters.setOAuthTokenSecret(sourceAccessTokenSecret); > > DocsService client = new DocsService("mwp-gaemigration-v1"); > try > { > client.setOAuthCredentials(oauthParameters, new OAuthHmacSha1Signer()); > } catch (OAuthException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > //URL feedUrl = new URL(" > https://docs.google.com/feeds/default/private/full"); > URL feedUrl = new URL(" > https://docs.google.com/feeds/default/private/full"); > DocumentListFeed resultFeed = client.getFeed(feedUrl, > DocumentListFeed.class); > int i=1; > for (DocumentListEntry entry : resultFeed.getEntries()) { > System.out.println("#" + i + " " + entry.getTitle().getPlainText() + > " " + entry.getFilename() + " " + entry.getResourceId()); > i++; > } > > thanks > > paul > > -- > You received this message because you are subscribed to the Google Groups > "Google Apps Domain Information and Management APIs" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-apps-mgmt-apis/-/M1bj1AOdRnoJ. > 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-apps-mgmt-apis?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management 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-apps-mgmt-apis?hl=en.
