Class: PatientZero::Authorization

Inherits:
Object
  • Object
show all
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

.tokenObject



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