Module: BurstSms::ListsGetRecipients

Included in:
API
Defined in:
lib/burstsms/lists_get_recipients.rb

Defined Under Namespace

Classes: Recipients, Response

Instance Method Summary collapse

Instance Method Details

#get_list_recipients(id, offset = 0, limit = 50) ⇒ Object



6
7
8
9
# File 'lib/burstsms/lists_get_recipients.rb', line 6

def get_list_recipients(id, offset=0, limit=50)
  response = post_to_api(get_list_recipients_body(id, offset, limit))
  Response.parse(response.body)
end

#get_list_recipients_body(id, offset, limit) ⇒ Object



11
12
13
14
15
# File 'lib/burstsms/lists_get_recipients.rb', line 11

def get_list_recipients_body(id, offset, limit)
  build_request("contact-lists.get-recipients", :id => id,
                                            :offset => offset,
                                            :limit => limit )
end