module Drip::Client::Tags
Public Instance Methods
apply_tag(email, tag)
click to toggle source
Public: Apply a tag to a subscriber.
email - The String email address of the subscriber. tag - The String tag to apply.
Returns a Drip::Response
. See www.getdrip.com/docs/rest-api#apply_tag
# File lib/drip/client/tags.rb, line 23 def apply_tag(email, tag) data = { "email" => email, "tag" => tag } make_json_api_request :post, "v2/#{account_id}/tags", private_generate_resource("tags", data) end
remove_tag(email, tag)
click to toggle source
Public: Remove a tag from a subscriber.
email - The String email address of the subscriber. tag - The String tag to remove.
Returns a Drip::Response
. See www.getdrip.com/docs/rest-api#remove_tag
# File lib/drip/client/tags.rb, line 35 def remove_tag(email, tag) make_json_api_request :delete, "v2/#{account_id}/subscribers/#{CGI.escape email}/tags/#{CGI.escape tag}" end