59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# File 'lib/etapi/calls/subscriber.rb', line 59
def subscriber_edit_from_list(*args)
options = args.
@list_id = options[:list_id]
@email = options[:email]
@values = options[:values] ||= {}
@account_id = options[:account_id] ||= ""
required_options = ["list_id", "email"]
return false unless check_required(required_options)
@parameters = {
"search_type" => "listid",
"search_value" => @list_id,
"search_value2" => @email,
"values" => @values
}
response = build_call("subscriber", "edit")
response.xpath("//subscriber_description").text.blank? && response.xpath("//subscriber_info").text.blank? ? false : true rescue false
end
|