Method: Particle::Client::Tokens#login
- Defined in:
- lib/particle/client/tokens.rb
#login(username, password, options = {}) ⇒ Token
Authenticate with Particle and start using the token on the client right away
87 88 89 90 91 |
# File 'lib/particle/client/tokens.rb', line 87 def login(username, password, = {}) token = create_token(username, password, ) self.access_token = token token end |