Module: AllPlayers::Authentication

Included in:
API
Defined in:
lib/allplayers/authentication.rb

Instance Method Summary collapse

Instance Method Details

#login(name, pass) ⇒ Object



3
4
5
6
7
# File 'lib/allplayers/authentication.rb', line 3

def (name, pass)
  begin
    post 'user/login' , {:username => name, :password => pass}
  end
end

#logoutObject



9
10
11
12
13
# File 'lib/allplayers/authentication.rb', line 9

def logout()
  begin
    post 'user/logout'
  end
end