Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - scanner.exe file automatically removed #403

Open
wimgielis opened this issue Aug 26, 2023 · 3 comments
Open

Question - scanner.exe file automatically removed #403

wimgielis opened this issue Aug 26, 2023 · 3 comments

Comments

@wimgielis
Copy link

Hello,

First time here on this wonderful Github repository, many thanks for creating the scanner.
However, I cannot get it working on my Windows laptop.

I first downloaded: https://github.com/Der-Henning/tgtg/releases/download/v1.17.1/scanner-v1.17.1-win.zip
and unzipped the file. After about half a minute, the scanner.exe file is removed. I assume (not sure) that Kaspersky anti virus is too enthousiastic. I use the work laptop for now.
Is this removal of the file known ? If I quickly rename the exe file it will still be deleted. What can I do in this case ?
My hope is to have the scanner running when my laptop is turned on.

Somewhat related question: I know some Python and REST API coding, I use Postman for that.
Does anyone have a Too good to go Postman collection, containing the main endpoints to login, get favorites, etc.
Then at least I can work my way through the TGTG API and inspect the API end points.

Thanks a lot !

@Der-Henning
Copy link
Owner

Hi @wimgielis,

Yes, I guess your anti-virus detects the file as potentially malicious as it is not signed by Microsoft. You could check the reason in the quarantine section of your anti-virus. There you should also be able to set an exception for the scanner.

There is no officially documented API for TGTG. All API endpoints where reverse engineered from the official TGTG app. For an overview of the available endpoints see https://github.com/Der-Henning/tgtg/blob/main/tgtg_scanner/tgtg/tgtg_client.py.

@wimgielis
Copy link
Author

wimgielis commented Aug 26, 2023

Hello @Der-Henning,

Many thanks for the quick reply. I will ask the system administrator at work.
First I will use the Python coding and Postman myself.
When I have something to add to the project, I will do so :-) This one can be closed.

@wimgielis
Copy link
Author

Hello all,

I have it working in Postman :-) I could think of a Postman collection with central variables for the authentication.

First endpoint for me is "item". I can see that it is a POST request that generates quite a mouthful of output depending on how many favorites the user has. Is there any way to, within the (Postman) POST request, to select only a small part of the output ?

I was thinking of: https://apptoogoodtogo.com/api/item/v8?$select=display_name

No error but it still returns the full output. My goal is to filter out bags that are available, with just 1 statement.

Thanks !

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

No branches or pull requests

2 participants