Skip to content

Commit

Permalink
Added methods for getting basic item by item and field id in Item model
Browse files Browse the repository at this point in the history
  • Loading branch information
RSpace committed May 2, 2012
1 parent a6d2025 commit 393ae9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/podio/models/item.rb
Expand Up @@ -80,6 +80,14 @@ def find_basic_hash(id)
Podio.connection.get("/item/#{id}/basic").body
end

def find_basic_by_field(item_id, field_id)
member Podio.connection.get("/item/#{item_id}/reference/#{field_id}/preview").body
end

def find_basic_hash_by_field(item_id, field_id)
Podio.connection.get("/item/#{item_id}/reference/#{field_id}/preview").body
end

def find_all_by_external_id(app_id, external_id)
collection Podio.connection.get("/item/app/#{app_id}/v2/?external_id=#{external_id}").body
end
Expand Down

0 comments on commit 393ae9e

Please sign in to comment.