How to easily parse Podio::Item.find_all return?



1 comment

  • Casper Fabricius

    Podio::Item.find_all returns a struct with three properties: count (filtered in the docs), total_count (total in the docs) and all (items in the docs).

    all is a collection of Podio::Item instances. So the response is already wrapped in objects, there is no need to parse it manually as you put it.

    Even if you don't use Ruby on Rails, I'd recommend that you take a look the Rails sample, especially the Lead model where you can see an example of how to nicely wrap reading and updating items.

    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk