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.