Module: BurstSms::ListsGetUnsubscribed

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

Defined Under Namespace

Classes: Recipients, Response

Instance Method Summary collapse

Instance Method Details

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



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

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

#get_list_unsubscribed_body(id, offset, limit) ⇒ Object



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

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