107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# File 'lib/etapi/calls/subscriber.rb', line 107
def subscriber_remove_from_list(*args)
options = args.
@list_id = options[:list_id]
@email = options[:email]
required_options = ["list_id", "email"]
return false unless check_required(required_options)
@parameters = {
"search_type" => "listid",
"search_value" => @list_id,
"search_value2" => @email
}
response = build_call("subscriber", "delete")
response.xpath("//subscriber_info").text.blank? ? false : true rescue false
end
|