class Podio::Tag
Public Class Methods
create(tagable_type, tagable_id, attributes)
click to toggle source
@see developers.podio.com/doc/tags/create-tags-22464
# File lib/podio/models/tag.rb, line 8 def create(tagable_type, tagable_id, attributes) response = Podio.connection.post do |req| req.url "/tag/#{tagable_type}/#{tagable_id}/" req.body = attributes end response.body end
delete(tagable_type, tagable_id, attributes)
click to toggle source
@see developers.podio.com/doc/tags/remove-tag-22465
# File lib/podio/models/tag.rb, line 67 def delete(tagable_type, tagable_id, attributes) response = Podio.connection.delete do |req| req.url("/tag/#{tagable_type}/#{tagable_id}/", attributes) end response.status end
find_by_app(app_id, limit, text)
click to toggle source
@see developers.podio.com/doc/tags/get-tags-on-app-22467
# File lib/podio/models/tag.rb, line 28 def find_by_app(app_id, limit, text) text = CGI.escape(text) if text list Podio.connection.get("/tag/app/#{app_id}/?limit=#{limit}&text=#{text}").body end
find_by_org(org_id, limit, text)
click to toggle source
@see developers.podio.com/doc/tags/get-tags-on-organization-48473
# File lib/podio/models/tag.rb, line 46 def find_by_org(org_id, limit, text) text = CGI.escape(text) if text list Podio.connection.get("/tag/org/#{org_id}/?limit=#{limit}&text=#{text}").body end
find_by_space(space_id, limit, text)
click to toggle source
@see developers.podio.com/doc/tags/get-tags-on-space-22466
# File lib/podio/models/tag.rb, line 40 def find_by_space(space_id, limit, text) text = CGI.escape(text) if text list Podio.connection.get("/tag/space/#{space_id}/?limit=#{limit}&text=#{text}").body end
find_tagged_objects_on_app(app_id, attributes)
click to toggle source
@see developers.podio.com/doc/tags/get-objects-on-app-with-tag-22469
# File lib/podio/models/tag.rb, line 52 def find_tagged_objects_on_app(app_id, attributes) Podio.connection.get("/tag/app/#{app_id}/search/", attributes).body end
find_tagged_objects_on_org(org_id, attributes)
click to toggle source
@see developers.podio.com/doc/tags/get-objects-on-organization-with-tag-48478
# File lib/podio/models/tag.rb, line 62 def find_tagged_objects_on_org(org_id, attributes) Podio.connection.get("/tag/org/#{org_id}/search/", attributes).body end
find_tagged_objects_on_space(space_id, attributes)
click to toggle source
@see developers.podio.com/doc/tags/get-objects-on-space-with-tag-22468
# File lib/podio/models/tag.rb, line 57 def find_tagged_objects_on_space(space_id, attributes) Podio.connection.get("/tag/space/#{space_id}/search/", attributes).body end
find_top_by_app(app_id, limit, text)
click to toggle source
@see developers.podio.com/doc/tags/get-tags-on-app-top-68485
# File lib/podio/models/tag.rb, line 34 def find_top_by_app(app_id, limit, text) text = CGI.escape(text) if text Podio.connection.get("/tag/app/#{app_id}/top/?limit=#{limit}&text=#{text}").body end
update(tagable_type, tagable_id, attributes)
click to toggle source
@see developers.podio.com/doc/tags/update-tags-39859
# File lib/podio/models/tag.rb, line 18 def update(tagable_type, tagable_id, attributes) response = Podio.connection.put do |req| req.url "/tag/#{tagable_type}/#{tagable_id}/" req.body = attributes end response.body end