Andre0512 / lidl-plus

Fetch receipts and more from Lidl Plus
MIT License
81 stars 19 forks source link

API change #4

Closed enteryournamehere closed 1 year ago

enteryournamehere commented 1 year ago

Just letting you know that API version 1 became unavailable (at least here in NL), so I did some research, and here are the updated endpoints:

Response data structure also slightly changed, for example records in the list response is now tickets instead.

Also, methods for these aren't currently implemented in your library, but you might be interested in them:

There's a bunch more endpoints for announcements, store details, shopping lists, etc, I'll document them all at some point, but hopefully the above will save you some trouble fixing the current methods in your library.

Andre0512 commented 1 year ago

Hey, thanks for reporting and your research! 🙂 I'm on vacation until mid of next week. I will have a look then, or feel free to make a pr.

enteryournamehere commented 1 year ago

I don't actually have a use for this library myself, I just had to figure out the new API anyway for my own project, and wanted to share my findings with others who might be interested - so feel free to use or not use this info whenever you like :) Enjoy your vacation!

ahormann commented 1 year ago

Thank you for the quick fix! A note for other users: The keys in the resulting json changed, for example an item now looks like this:

      "currentUnitPrice": "2,29",
      "quantity": "1",
      "isWeight": false,
      "originalAmount": "2,29",
      "name": "Mozarelli",
      "taxGroupName": "A",
      "codeInput": "4056489442431",
      "discounts": [],
      "deposit": null,
      "giftSerialNumber": null
Andre0512 commented 1 year ago

I merged it and published a new release, thanks guys! 👍 @ahormann At first glance it looks the same, can you point out what changed? Pr to the readme is also welcome 🙂

ahormann commented 1 year ago

The description was renamed to name and the extendedAmount seems to be gone.

Andre0512 commented 1 year ago

The description was renamed to name and the extendedAmount seems to be gone.

Thanks, I updated the readme :+1: