Module: BurstSms::ListsDeleteRecipient

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

Defined Under Namespace

Classes: Response

Instance Method Summary collapse

Instance Method Details

#delete_list_recipient(list_id, mobile) ⇒ Object



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

def delete_list_recipient(list_id, mobile)
  @response = post_to_api(delete_list_recipient_body(list_id, mobile))
  Response.parse(@response.body)
end

#delete_list_recipient_body(list_id, mobile) ⇒ Object



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

def delete_list_recipient_body(list_id, mobile)
  build_request("contact-lists.delete-recipient", :mobile => mobile,
                                                  :list_id => list_id)
end