Class: SerwerSMS::ClientToken

Inherits:
Object
  • Object
show all
Includes:
ResourcesMixin
Defined in:
lib/serwersms/client_token.rb

Instance Method Summary collapse

Methods included from ResourcesMixin

#accounts, #blacklist, #contacts, #error, #files, #groups, #messages, #phones, #premium, #senders, #stats, #subaccounts, #templates

Constructor Details

#initialize(token:, **opts) ⇒ ClientToken

Returns a new instance of ClientToken.



5
6
7
# File 'lib/serwersms/client_token.rb', line 5

def initialize(token:, **opts)
  @http = Http::HttpToken.new(token: token, **opts)
end

Instance Method Details

#call(path, params = {}) ⇒ Object



9
10
11
# File 'lib/serwersms/client_token.rb', line 9

def call(path, params = {})
  @http.call(path, params)
end