Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions lib/e_pochta_sms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@ def create_address_book(params)
end
end

def check_campaign_price(params)
params['action'] = 'checkCampaignPrice'

result = exec_command(params)
result = JSON.parse(result.body)

if result.has_key? 'error'
false
else
result['result']
end
end

def get_addressbook(params)
params['action'] = 'getAddressbook'

result = exec_command(params)
result = JSON.parse(result.body)

if result.has_key? 'error'
false
else
result['result']
end
end

def get_balance()
params = {}
params['action'] = 'getUserBalance'
Expand Down