Skip to content

Commit

Permalink
Added optional subfield argument to reference search
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Dec 8, 2015
1 parent 5ecf2dc commit cc20efa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/podio/models/reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def find(ref_type, ref_id, options = {})
end

# @see https://developers.podio.com/doc/reference/search-references-13312595
def search(target, query, limit, target_params = nil)
def search(target, query, limit, target_params = nil, subfield = nil)
response = Podio.connection.post do |req|
req.url "/reference/search"
req.body = {
Expand All @@ -30,6 +30,7 @@ def search(target, query, limit, target_params = nil)
:limit => limit
}
req.body[:target_params] = target_params if target_params.present?
req.body[:subfield] = subfield if subfield.present?
end
response.body
end
Expand Down

0 comments on commit cc20efa

Please sign in to comment.