coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
794 stars 138 forks source link

If user logs-in using their e-mail address, authentication will succeed, but diary operations will fail. #27

Closed coddingtonbear closed 8 years ago

coddingtonbear commented 8 years ago

@prio clued me in on this via #22.

What we should probably do is figure out what the actual username is when they log-in; it is shown on the top of the page, and it looks like it is returned in at least one of the XHRs that the page will execute on-load, but this will take more investigation either way.

coddingtonbear commented 8 years ago

Fixed! We'll now gather the proper user ID and basic username automatically.

Also, while digging into this, I discovered the beginnings of an API that I can use for bulletproofing things a little better in the future. Unfortunately, although I do see a diary endpoint in use, they're requesting only a single field from it, so advancing that cause will have to wait!