agentcooper / albert-heijn

Albert Heijn (https://www.ah.nl/) API
Apache License 2.0
50 stars 5 forks source link

Local store prices #3

Open quentinharris opened 6 years ago

quentinharris commented 6 years ago

Prices vary by store. For example, oreo-biscuits-original-10-x-2-koekjes-220g/155522PAK price at Oosterhout is 1,87 whereas Brielle it is 1,97. Is there away with the API to specify both the product and the store in order to retrieve a local price from the response JSON?

If I use the API with

https://www.ah.nl/service/rest/delegate?url=%2Fproducten%2Fproduct%2Fwi234162%2Foreo-biscuits-original

I get a third price of 1,99

Does one need to somehow set local store cookies and send with the request?

quentinharris commented 6 years ago

Any update on this please? I note an app implementation that uses store here: https://github.com/bartmachielsen/SupermarktConnector

agentcooper commented 6 years ago

Sorry, I have no idea. I don't use this project at the moment. Would you be able to extract the required API call from https://github.com/bartmachielsen/SupermarktConnector?

Or maybe you can intercept required call from the Appie app.