Module: Kongkit::Client::KeyAuthentication
- Included in:
- Kongkit::Client
- Defined in:
- lib/kongkit/client/key_authentication.rb
Instance Method Summary collapse
-
#add_auth_key(identifier) ⇒ Kongkit::Client::Resource
Create a new Auth Key for the given consumer.
-
#auth_keys(identifier) ⇒ Kongkit::Client::Resource
List Auth Keys for the given consumer.
-
#delete_auth_key(identifier, id) ⇒ Boolean
Delete Auth Key.
Instance Method Details
#add_auth_key(identifier) ⇒ Kongkit::Client::Resource
Create a new Auth Key for the given consumer
18 19 20 |
# File 'lib/kongkit/client/key_authentication.rb', line 18 def add_auth_key(identifier) post(auth_key_path(identifier)) end |
#auth_keys(identifier) ⇒ Kongkit::Client::Resource
List Auth Keys for the given consumer
9 10 11 |
# File 'lib/kongkit/client/key_authentication.rb', line 9 def auth_keys(identifier) get(auth_key_path(identifier)) end |
#delete_auth_key(identifier, id) ⇒ Boolean
Delete Auth Key
28 29 30 |
# File 'lib/kongkit/client/key_authentication.rb', line 28 def delete_auth_key(identifier, id) delete("#{auth_key_path(identifier)}/#{id}") end |