Correct Uri methods for pagination/limit

61 views
Skip to first unread message

Lucas Spiller

unread,
Oct 10, 2016, 5:42:44 PM10/10/16
to Etsy API
Hi,
I am having trouble with pagination and the limit parameter.
I am successfully retrieving the transactions json data belonging to a specific shop with oauth.
For this I am using the uri method
"https://openapi.etsy.com/v2/private/shops/ShopName/transactions".
But the problem is, that only a max. of 25 transaction entries is returned by default. You are supposed to use pagination
and/or to set the limit higher.
Reading what is listed in the API documentation the correct uri for changing pages or setting the limit
has to be like
https://openapi.etsy.com/v2/private/shops/ShopName/transactions/limit=100&page=2
or
https://openapi.etsy.com/v2/private/shops/ShopName/transactions&limit=100&page=2
but when I am sending those requests I am getting a reponse from the server stating: "The supplied uri doesn't map to a valid command"

What am I doing wrong? What are the correct uri commands?
Any help is appreciated


david olick

unread,
Oct 11, 2016, 1:55:56 PM10/11/16
to Etsy API V2
It looks like you are forgetting the "?".

It should be
https://openapi.etsy.com/v2/private/shops/ShopName/transactions?limit=100&page=2

Not


--
David Olick
Oriku Inc.

--
You received this message because you are subscribed to the Google Groups "Etsy API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to etsy-api-v2+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages