Class: Vonage::Secrets
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Secrets
- Defined in:
- lib/vonage/secrets.rb
Defined Under Namespace
Classes: ListResponse
Instance Method Summary collapse
-
#create(params) ⇒ Response
Create API Secret.
-
#get(secret_id) ⇒ Response
Retrieve one API Secret.
-
#list(params = nil, auto_advance = true) ⇒ ListResponse
Retrieve API Secrets.
-
#revoke(secret_id) ⇒ Response
Revoke an API Secret.
Instance Method Details
#create(params) ⇒ Response
Create API Secret.
29 30 31 |
# File 'lib/vonage/secrets.rb', line 29 def create(params) request('/accounts/' + account_id + '/secrets', params: params, type: Post) end |
#get(secret_id) ⇒ Response
Retrieve one API Secret.
64 65 66 |
# File 'lib/vonage/secrets.rb', line 64 def get(secret_id) request('/accounts/' + account_id + '/secrets/' + secret_id) end |
#list(params = nil, auto_advance = true) ⇒ ListResponse
Retrieve API Secrets.
49 50 51 |
# File 'lib/vonage/secrets.rb', line 49 def list(params = nil, auto_advance = true) request('/accounts/' + account_id + '/secrets', params: params, response_class: ListResponse) end |
#revoke(secret_id) ⇒ Response
Revoke an API Secret.
79 80 81 |
# File 'lib/vonage/secrets.rb', line 79 def revoke(secret_id) request('/accounts/' + account_id + '/secrets/' + secret_id, type: Delete) end |