Class: PatientZero::Authorization
- Inherits:
-
Object
- Object
- PatientZero::Authorization
- Includes:
- Client
- Defined in:
- lib/patient_zero/authorization.rb
Class Method Summary collapse
Methods included from Client
#connection, #get, included, #parse, #post, #put
Class Method Details
.token ⇒ Object
5 6 7 8 |
# File 'lib/patient_zero/authorization.rb', line 5 def self.token response = post '/mobile/api/v1/user/login', email: PatientZero.email, password: PatientZero.password response['user_token'] end |