Sha256: 16757872c79be9cef36f1f9f99273e0052ad7b0e866f022f185f54a8ae6f0548
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
module Todoist module Misc class User include Todoist::Util # Logs the user in and grabs a token for the login session. def login(email, password) result = NetworkHelper.getResponse(Config::TODOIST_USER_LOGIN_COMMAND, {email: email, password: password}, false) user = ParseHelper.make_object(result) Config.token = user.token return user end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
todoist-ruby-0.1.3 | lib/todoist/misc/user.rb |
todoist-ruby-0.1.2 | lib/todoist/misc/user.rb |
todoist-ruby-0.1.1 | lib/todoist/misc/user.rb |