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
{{ message }}
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
I've ran into an issue with fetching activities when :limit is greater than 25. Until 25 everything works perfectly. I'm using ruby 2.0.0p481 and the error message that I get for limit 26 is as follows:
/Library/Ruby/Gems/2.0.0/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:18:in request': undefined methodmap' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:28:in request' from /Library/Ruby/Gems/2.0.0/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:8:inget_activities'
from /Library/Ruby/Gems/2.0.0/gems/run_keeper-0.0.5/lib/run_keeper/request.rb:18:in fitness_activities' from uRun.rb:21:in
'
I suspect that this has something to do with the default page size limit.
Any help here would be greatly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered:
I haven't used this library for about 2 - 3 years so I'm not sure what does and does not work. I don't remember that pagination was available so limiting was implemented in ruby not by RunKeeper. It looks like you can ask for a custom page size now which is a better solution than what I've provided.
I'd be interested in taking a pull request for the new functionality if you have time?
Understandable that after a few years the API has changed. I would be glad
to help out with that functionality. Note that this would be my first time
contributing to any open source project so some guidance would be needed.
Github has some really good documentation on this process. If you want to make some changes I'd be fine with you putting up a pull request that is "half right" and we can work through it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Great API guys! Thanks so much!
I've ran into an issue with fetching activities when :limit is greater than 25. Until 25 everything works perfectly. I'm using ruby 2.0.0p481 and the error message that I get for limit 26 is as follows:
/Library/Ruby/Gems/2.0.0/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:18:in
'request': undefined method
map' for nil:NilClass (NoMethodError)from /Library/Ruby/Gems/2.0.0/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:28:in
request' from /Library/Ruby/Gems/2.0.0/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:8:in
get_activities'from /Library/Ruby/Gems/2.0.0/gems/run_keeper-0.0.5/lib/run_keeper/request.rb:18:in
fitness_activities' from uRun.rb:21:in
I suspect that this has something to do with the default page size limit.
Any help here would be greatly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: