sckott / request

http requests DSL for R
Other
36 stars 3 forks source link

Paging #2

Open sckott opened 9 years ago

sckott commented 9 years ago

various paging patterns:

Automagically figure out what params to pass and their values given user input. We'll need some user input:

Things we can figure out automatically

sckott commented 9 years ago

This probably will require using something that can maintain state, like an R6 class

sckott commented 9 years ago

paging notes

per_page/page interface --- assuming max is > 20 limit = 20 -> per_page = 5 offset = 15 -> page = 4 chunk_size = 5 stop -> 20 (so, get 4 pages)

limit/offset interface --- assuming max is > 20 limit = 20 offset = 0 chunk_size = 5 stop -> 20 (so, get 4 pages ({limit = 5, offset = 0}, {limit = 5, offset = 5}, etc.))

sckott commented 8 years ago

moving to next milestone, trying to get MVP out #10