Skip to content

How to iterate through stages? #7

Open

Description

@cbou

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.

Activity

  1. lancecarlson commented on Dec 22, 2017

    @lancecarlson

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions