5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/etapi/calls/list.rb', line 5
def list_retrieve_subscribers(*args)
options = args.
@list_id = options[:list_id]
required_options = ["list_id"]
return false unless check_required(required_options)
@parameters = {
"search_type" => "listid",
"search_value" => @list_id
}
response = build_call("list", "retrieve_sub", {:parse_response => false})
Hash.from_xml(response)['exacttarget']['system']['list']['subscribers'].first[1] rescue false
end
|