Class: Wl::Client

Inherits:
APISmith::Base
  • Object
show all
Defined in:
lib/wl/client.rb

Instance Method Summary collapse

Instance Method Details

#login(email, password) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/wl/client.rb', line 7

def (email, password)
  response = post('login', extra_query: {email: email, password: password}, as: )
  if response.code == 200
    .new(response.parsed_response)
  else
    raise response.inspect
  end
end