What's new? | Help | Directory | Sign in
Google
lingr
Lingr API
  
  
  
  
    
Search
for
Updated Apr 30, 2008 by kenn.ejima
Authentication  

Authentication


auth.login

Authenticates a user inside an existing API session.

Some methods require the user to be logged in, while others may behave differently based on whether the user has logged in or not. Any requirements or behavioral differences related to authentication are mentioned on each methods in API reference.

Only one user can login within a given session.

If authentication has already been performed inside the referenced session, this method will fail.

HTTP Method:

URL:
  • http://www.lingr.com/api/auth/login

Parameters:

session * The session id returned from session.create
email * The email address of the user to login
password * The password for the user

(*) Required

Example Response:

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>ok</status>
</response>

auth.logout

Logs out a user inside an existing API session.

HTTP Method:

URL:
  • http://www.lingr.com/api/auth/logout

Parameters:

session * The authenticated session id

(*) Required

Example Response:

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>ok</status>
</response>