Open mattpolicastro opened 9 years ago
Started working on this on my own fork. Have a rough implementation done, but still trying to figure out what the default behaviours should be (and whether I'm interpreting the start
/max
/batch
params correctly, per @skardhamar's intent.
I'm working with a pretty complex account hierarchy with a ton of profiles, and am butting up against the API limit for 1000 results per call when requesting management resources. At the moment, I can work around it with the following:
Obviously, this isn't very clean and is prone to user error. How do folks feel about using something similar to the
batch = TRUE
parameter when fetching management entities?The management API's response resources include
nextLink
andpreviousLink
properties, which I've successfully used for cycling through results in Node. A rough sketch of what I'm recommending (based off ofrga/R/mgmt.R
):Was going to test/develop sometime soon, but figured I'd see if anyone had any thoughts/feedback. Thanks!