Module: Smslist::Authentication
- Included in:
- Client
- Defined in:
- lib/smslist/authentication.rb
Instance Method Summary collapse
Instance Method Details
#authentication ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/smslist/authentication.rb', line 3 def authentication if token {token: token} elsif login && password {login: login, password: password} else raise Smslist::UnauthorizedError.new('Access token, or login '\ 'and password are not initialized') end end |