class Checkmobi::SDK::Api

Public Class Methods

new(client = Checkmobi::SDK::Client.new) click to toggle source
# File lib/checkmobi/api.rb, line 5
def initialize(client = Checkmobi::SDK::Client.new)
  @client = client
end

Public Instance Methods

account_details() click to toggle source
# File lib/checkmobi/api.rb, line 9
def account_details
  @client.get '/my-account'
end
call_details(id) click to toggle source
# File lib/checkmobi/api.rb, line 49
def call_details(id)
  @client.get "/call/#{id}"
end
check_number(params) click to toggle source
# File lib/checkmobi/api.rb, line 25
def check_number(params)
  @client.post '/checknumber', params
end
countries() click to toggle source
# File lib/checkmobi/api.rb, line 13
def countries
  @client.get '/countries'
end
hang_up_call(id) click to toggle source
# File lib/checkmobi/api.rb, line 53
def hang_up_call(id)
  @client.delete "/call/#{id}"
end
place_call(params) click to toggle source
# File lib/checkmobi/api.rb, line 45
def place_call(params)
  @client.post '/call', params
end
prefixes() click to toggle source
# File lib/checkmobi/api.rb, line 17
def prefixes
  @client.get '/prefixes'
end
request_validation(params) click to toggle source
# File lib/checkmobi/api.rb, line 29
def request_validation(params)
  @client.post '/validation/request', params
end
send_sms(params) click to toggle source
# File lib/checkmobi/api.rb, line 21
def send_sms(params)
  @client.post '/sms/send', params
end
sms_details(id) click to toggle source
# File lib/checkmobi/api.rb, line 41
def sms_details(id)
  @client.get "/sms/#{id}"
end
validation_status(id) click to toggle source
# File lib/checkmobi/api.rb, line 37
def validation_status(id)
  @client.get "/validation/status/#{id}"
end
verify_pin(params) click to toggle source
# File lib/checkmobi/api.rb, line 33
def verify_pin(params)
  @client.post '/validation/verify', params
end