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

view_id or filters params in Item.item_count #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pjmuller
Copy link
Contributor

@pjmuller pjmuller commented Dec 6, 2015

See title ;)

@pjmuller
Copy link
Contributor Author

pjmuller commented Dec 6, 2015

I also added one extra API call for the app stream

@@ -187,8 +187,11 @@ def find_field_top(field_id, options={:limit => 8})
end

# @see https://developers.podio.com/doc/items/get-item-count-34819997
def item_count(app_id)
Podio.connection.get("/item/app/#{app_id}/count/").body
# options are either filters {gender: 1, firstname: "Joe"} or a view {view_id: 123}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding option specifics in the code is discouraged. These may be the options now, but not guaranteed in the future. The API docs should be the source of reference.

@cpeters
Copy link
Contributor

cpeters commented Jul 27, 2016

Please split these 2 commits into individual PRs

req.url("/stream/app/#{app_id}/v3/", options)
}.body
end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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

Successfully merging this pull request may close these issues.

2 participants