class OnlineSim::GetFree

Public Instance Methods

countries() click to toggle source
# File lib/onlinesim/GetFree.rb, line 5
def countries
  return self ._get(:endpoint => 'getFreeCountryList')['countries']
end
messages(phone, page: 1) click to toggle source
# File lib/onlinesim/GetFree.rb, line 13
def messages(phone, page: 1)
  return self ._get(:endpoint => 'getFreeMessageList', :params => {phone: phone, page: page})['messages']['data']
end
numbers(country: 7) click to toggle source
# File lib/onlinesim/GetFree.rb, line 9
def numbers(country: 7)
  return self ._get(:endpoint => 'getFreePhoneList', :params => {country: country})['numbers']
end