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

How to iterate through stages? #7

Open
cbou opened this issue Aug 19, 2016 · 1 comment
Open

How to iterate through stages? #7

cbou opened this issue Aug 19, 2016 · 1 comment

Comments

@cbou
Copy link

cbou commented Aug 19, 2016

There is currently an error in the Streak API when calling stages.
It returns a JSON object and not an array.

https://www.streak.com/api/#stage

I can't find a way how to iterate through all stages.

@lancecarlson
Copy link

It's supposed to return an object as you can see in their example json output.

I would suggest converting everything into a hash and then using the appropriate hash iterators.

https://docs.ruby-lang.org/en/2.0.0/Hash.html#method-i-each

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