Class: SignalWire::REST::Namespaces::ProjectTokens
- Inherits:
-
BaseResource
- Object
- BaseResource
- SignalWire::REST::Namespaces::ProjectTokens
- Defined in:
- lib/signalwire/rest/namespaces/project.rb
Overview
Project API token management.
Instance Method Summary collapse
- #create(**kwargs) ⇒ Object
- #delete(token_id) ⇒ Object
-
#initialize(http) ⇒ ProjectTokens
constructor
A new instance of ProjectTokens.
- #update(token_id, **kwargs) ⇒ Object
Constructor Details
#initialize(http) ⇒ ProjectTokens
Returns a new instance of ProjectTokens.
8 9 10 |
# File 'lib/signalwire/rest/namespaces/project.rb', line 8 def initialize(http) super(http, '/api/project/tokens') end |
Instance Method Details
#create(**kwargs) ⇒ Object
12 |
# File 'lib/signalwire/rest/namespaces/project.rb', line 12 def create(**kwargs) = @http.post(@base_path, kwargs) |
#delete(token_id) ⇒ Object
18 19 20 |
# File 'lib/signalwire/rest/namespaces/project.rb', line 18 def delete(token_id) @http.delete(_path(token_id)) end |
#update(token_id, **kwargs) ⇒ Object
14 15 16 |
# File 'lib/signalwire/rest/namespaces/project.rb', line 14 def update(token_id, **kwargs) @http.patch(_path(token_id), kwargs) end |