Closed enteryournamehere closed 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.
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!
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
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 🙂
The description was renamed to name and the extendedAmount seems to be gone.
The description was renamed to name and the extendedAmount seems to be gone.
Thanks, I updated the readme :+1:
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:
Ticket list Old:
https://tickets.lidlplus.com/api/v1/NL/tickets/list
New:https://tickets.lidlplus.com/api/v2/NL/tickets
You can use the query parameterpageNumber
to select the page of the paginated response, andonlyFavorite
(true/false) to filter by favourite status.Ticket details Old:
https://tickets.lidlplus.com/api/v1/NL/tickets/{id}
New:https://tickets.lidlplus.com/api/v2/NL/tickets/{id}
Response data structure also slightly changed, for example
records
in the list response is nowtickets
instead.Also, methods for these aren't currently implemented in your library, but you might be interested in them:
https://tickets.lidlplus.com/api/v2/NL/tickets/favorite
, with JSON body["ticketidhere"]
https://tickets.lidlplus.com/api/v2/NL/tickets/unfavorite
, with JSON body["ticketidhere"]
https://coupons.lidlplus.com/api/v2/NL
https://coupons.lidlplus.com/api/v2/NL/{id}
https://coupons.lidlplus.com/api/v1/NL/{id}/activation
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.