Module: BurstSms::ListsGet

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

Defined Under Namespace

Classes: Lists, Response

Instance Method Summary collapse

Instance Method Details

#get_lists(offset = 0, limit = 50) ⇒ Object



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

def get_lists(offset=0, limit=50)
  response = post_to_api(get_lists_body(offset, limit))
  Response.parse(response.body)
end

#get_lists_body(offset, limit) ⇒ Object



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

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