Skip to content

Commit

Permalink
Merge pull request #22 from pjmuller/app_item_count
Browse files Browse the repository at this point in the history
Added Podio::Item.item_count
  • Loading branch information
haugstrup committed Nov 25, 2014
2 parents 3a5d626 + fa5b626 commit 8a2c3ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/podio/models/item.rb
Expand Up @@ -184,6 +184,11 @@ def find_field_top(field_id, options={:limit => 8})
}.body
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
end

# @see https://developers.podio.com/doc/items/get-items-as-xlsx-63233
def xlsx(app_id, options={})
response = Podio.connection.get { |req|
Expand Down

0 comments on commit 8a2c3ae

Please sign in to comment.