Class: SignalWire::REST::Namespaces::PubSubResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/signalwire/rest/namespaces/pubsub.rb

Overview

PubSub token generation.

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ PubSubResource

Returns a new instance of PubSubResource.



8
9
10
# File 'lib/signalwire/rest/namespaces/pubsub.rb', line 8

def initialize(http)
  super(http, '/api/pubsub/tokens')
end

Instance Method Details

#create_token(**kwargs) ⇒ Object



12
13
14
# File 'lib/signalwire/rest/namespaces/pubsub.rb', line 12

def create_token(**kwargs)
  @http.post(@base_path, kwargs)
end