scarletyy / google-api-java-client

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

Method to get next page of entries in a feed #393

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

Some feeds have a "nextPageToken".  The idea is that if you want the next page 
of results in a feed, you should use the value of the "nextPageToken" JSON 
property as the value of the "pageToken" feed parameter, leaving the other 
inputs the same.

One possible implementation is to generate an executeNextPage() method to a 
feed request object which execute a request the grabs the "nextPageToken" from 
the most recent execute() call on that feed request object.

As an example, see the discovery document for Calendar V3:

"
schemas: {
CalendarList: {
id: "CalendarList",
type: "object",
properties: {
items: {
type: "array",
description: "Calendars that are present on the user's calendar list.",
items: {
$ref: "CalendarListEntry"
}
},
nextPageToken: {
type: "string",
description: "Token used to access the next page of this result."
}
}
},
"

Original issue reported on code.google.com by yan...@google.com on 18 Jan 2012 at 1:19

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 20 Jan 2012 at 4:30

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 27 Mar 2012 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 16 May 2012 at 1:24

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 30 May 2012 at 10:04

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 2 Aug 2012 at 2:34

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 26 Sep 2012 at 12:43

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 24 Oct 2012 at 5:27

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 1 Dec 2012 at 5:28

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 10 Dec 2012 at 2:47

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 19 Jan 2013 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 7 Feb 2013 at 12:05

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 10 Jun 2013 at 1:24

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 26 Jul 2013 at 10:19

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 27 Sep 2013 at 12:06