diff --git a/lib/podio/models/item.rb b/lib/podio/models/item.rb index 8724829f..d9251b44 100644 --- a/lib/podio/models/item.rb +++ b/lib/podio/models/item.rb @@ -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} + def item_count(app_id, options = {}) + Podio.connection.get { |req| + req.url("/item/app/#{app_id}/count", options) + }.body end # @see https://developers.podio.com/doc/items/get-items-as-xlsx-63233 diff --git a/lib/podio/models/stream_object.rb b/lib/podio/models/stream_object.rb index 76da9b71..0d0a4de4 100644 --- a/lib/podio/models/stream_object.rb +++ b/lib/podio/models/stream_object.rb @@ -52,6 +52,13 @@ def find_all_by_app_id(app_id, options={}) }.body end + # @see https://developers.podio.com/doc/stream/get-application-stream-v3-100406563 + def find_all_by_app_id_v3(app_id, options={}) + list Podio.connection.get { |req| + req.url("/stream/app/#{app_id}/v3/", options) + }.body + end + # @see https://developers.podio.com/doc/stream/get-user-stream-1289318 def find_all_by_user_id(user_id, options={}) list Podio.connection.get { |req|