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

maxResults > 650 fails #3

Open
appsforartists opened this issue Apr 2, 2014 · 1 comment
Open

maxResults > 650 fails #3

appsforartists opened this issue Apr 2, 2014 · 1 comment

Comments

@appsforartists
Copy link

http://api.mobile.endomondo.com/mobile/api/workout/list?authToken=XXXXXX&language=EN&maxResults=650 works OK, but going much higher than that results in an empty response, which causes requests to retry until in ultimately crashes with

requests.exceptions.ConnectionError: HTTPConnectionPool(host='api.mobile.endomondo.com', port=80): Max retries exceeded with url: /mobile/api/workout/list?authToken=XXXXXXXX&language=EN&maxResults=900 (Caused by <class 'httplib.BadStatusLine'>: '')

It would be nice to know how pagination works in this API, so we could teach the app to request multiple 650-item-long pages.

@CountablyInfinite
Copy link

CountablyInfinite commented Nov 18, 2020

I added some small improvements, including a workaround to download more than 500 workouts, to this script, since i don't think the DEV is active on Github anymore and endomondo is closing it's doors by the end of 2020. Maybe this solves your problem. #10

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