You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is get_report calling an old API? It takes 2 dates where the MFP reports page only uses a number of days from today. And the urls look different, but maybe there is some python/library magic going on (no Python expert!)?
The text was updated successfully, but these errors were encountered:
Hi @guidoderam, you're right, it looks like the URL has changed and so has the response format. However, the number of date arguments has not changed - it looks like we use only the lower_bound argument in the API call, then drop anything out of bounds before returning.
I tried calling get_report in a couple of different ways but all of them resulted in a JSONDecodeError.
I looked at the relevant code and compared it to the API calls made on https://www.myfitnesspal.com/reports:
MFP reports page: https://www.myfitnesspal.com/api/services/reports/results/nutrition/fat/30?report_name=fat
Python-myfitnesspal get_report: https://www.myfitnesspal.com/reports/results/fat/30.json
Is get_report calling an old API? It takes 2 dates where the MFP reports page only uses a number of days from today. And the urls look different, but maybe there is some python/library magic going on (no Python expert!)?
The text was updated successfully, but these errors were encountered: