Class: Nexmo::Account
- Inherits:
-
Namespace
- Object
- Namespace
- Nexmo::Account
- Defined in:
- lib/nexmo/account.rb
Instance Method Summary collapse
-
#balance ⇒ Response
Retrieve your account balance.
-
#topup(params) ⇒ Response
Top-up your account balance.
-
#update(params) ⇒ Response
Update the default callback URLs (where the webhooks are sent to) associated with your account.
Instance Method Details
#balance ⇒ Response
Retrieve your account balance.
15 16 17 |
# File 'lib/nexmo/account.rb', line 15 def balance request('/account/get-balance') end |
#topup(params) ⇒ Response
Top-up your account balance.
52 53 54 |
# File 'lib/nexmo/account.rb', line 52 def topup(params) request('/account/top-up', params: params, type: Post) end |
#update(params) ⇒ Response
Note:
The URLs you provide must be valid and active. Nexmo will check that they return a 200 OK response before the setting is saved.
Update the default callback URLs (where the webhooks are sent to) associated with your account.
37 38 39 |
# File 'lib/nexmo/account.rb', line 37 def update(params) request('/account/settings', params: camelcase(params), type: Post) end |