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 (username, password, options = {})
  token = create_token(username, password, options)
  self.access_token = token
  token
end