Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

endpoints still invalid #6

Closed
Suresh-Subedi opened this issue Feb 4, 2022 · 7 comments
Closed

endpoints still invalid #6

Suresh-Subedi opened this issue Feb 4, 2022 · 7 comments

Comments

@Suresh-Subedi
Copy link

Suresh-Subedi commented Feb 4, 2022

Still, old endpoint is used for receipts.

When I try to get receipts for Belgium I get:

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>Microsoft-Azure-Application-Gateway/v2</center>
</body>
</html>

https://appgateway.lidlplus.com/tickets/api/v1/be/list/1 gives error above
https://appgateway.lidlplus.com/app/v24/be/tickets/list/1 gives internal server error

is it still working for you guys? are you getting receipts for your countries with above urls?

@bluewalk
Copy link
Owner

bluewalk commented Feb 4, 2022

Yes the endpoint has changed once again, I had already changed it for the .NET library but haven't had the time for this one yet. Will try to fix later :)

@bluewalk
Copy link
Owner

bluewalk commented Feb 4, 2022

Can you check the code in the updated-endpoints branch? I am unable to test at the moment but want to be sure before pushing it to Packagist.

@Suresh-Subedi
Copy link
Author

Suresh-Subedi commented Feb 4, 2022

Semicolon is missing in LidlPlus.php at line 9.
Get receipts url must be missing country code, I get not found.
With endpoint https://tickets.lidlplus.com/api/v1/be/list/1, I'm getting

{
    "page": 1,
    "size": 25,
    "totalCount": 0,
    "records": []
}

Which is also strange as I have many receipts in my android app.

@Suresh-Subedi
Copy link
Author

With semicolon and country code, I do get result back. I must be missing something in the call I made.

@Suresh-Subedi
Copy link
Author

Ok, records was empty because country code was 'be' instead of 'BE'.

@bluewalk
Copy link
Owner

bluewalk commented Feb 4, 2022

Thanks for testing, I guess I indeed forgot country code, will add 👍

[edit] added the missing country code

@bluewalk
Copy link
Owner

Assuming that due to the lack of response it's resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants