ahivert / tgtg-python

Unofficial client for TooGoodToGo API
GNU General Public License v3.0
372 stars 70 forks source link

Function client.set_favorite doesn't work anymore #288

Closed NoRegrets06 closed 7 months ago

NoRegrets06 commented 7 months ago

Hello everyone,

the function client.set_favorite(item_id=64346, is_favorite=True) doesn't work anymore and returns a 404 error -> tgtg.exceptions.TgtgAPIError: (404, b'')

maybe a different api endpoint ? Thx for this amazing code ;)

floriegl commented 7 months ago

Did some Android MITM. The new Endpoint is POST /api/user/favorite/v1/{item_id}/update with body {"is_favorite":true} or {"is_favorite":false}