Sha256: 33e2cd1d14f0ddb340ea26aa7a761a7f01db77ee26bf7594787150bf0025296c

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

module ETAPI
  
  class Session
    
    def list_retrieve_subscribers(*args)
      
      # options
      options         = args.extract_options!
      @list_id        = options[:list_id]
      
      # check for required options
      required_options = ["list_id"]
      return false unless check_required(required_options)
      
      # merge parameters and values
      @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
    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
etapi-0.1.1 lib/etapi/calls/list.rb