Get products within sale

68 views
Skip to first unread message

Kevin Bojarski

unread,
May 1, 2013, 6:53:26 PM5/1/13
to gilt-pu...@googlegroups.com
Is there a way to get all of the products within a sale in the same format in which a search returns? So instead of having to make n requests to get all n products in a sale you are able to get all of the information within one json response?

Federico Feroldi

unread,
May 3, 2013, 9:41:38 AM5/3/13
to gilt-pu...@googlegroups.com
Hi Kevin,

unfortunately not for now.... however the sale/product data that you get through the /sales and /products endpoints is cached so it should be quite fast to fetch everything and keep a local cache yourself :)

what is your use case exactly?



On Wed, May 1, 2013 at 6:53 PM, Kevin Bojarski <kevinb...@gmail.com> wrote:
Is there a way to get all of the products within a sale in the same format in which a search returns? So instead of having to make n requests to get all n products in a sale you are able to get all of the information within one json response?

--
You received this message because you are subscribed to the Google Groups "Gilt Public API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gilt-public-a...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Federico Feroldi
Gilt Groupe, Inc.

Kevin Bojarski

unread,
May 3, 2013, 1:18:58 PM5/3/13
to gilt-pu...@googlegroups.com
The user selects a sale, and then view all of the products within the sale. Right now if there are 10 items in a sale, I am forced to make 10 separate request (one for each item) instead of just one to get all items in one request.

Federico Feroldi

unread,
May 3, 2013, 5:18:39 PM5/3/13
to gilt-pu...@googlegroups.com
An alternative strategy could be to call https://api.gilt.com/v1/products to get all the products on sale and cache them (say every 5-10 minutes) then you can just lookup the product data from you cache given the product ID provided by the sale object

Kevin Bojarski

unread,
May 6, 2013, 9:42:55 PM5/6/13
to gilt-pu...@googlegroups.com
Yeah, I am currently caching the results. but having to make n requests/JSON parser calls for n products is causing performance degradation.
Reply all
Reply to author
Forward
0 new messages