What's new? | Help | Directory | Sign in
Google
lingr
Lingr API
  
  
  
  
    
Search
for
Updated May 05, 2008 by kenn.ejima
Session  

Session


session.create

Creates a new Lingr API session. Once you create a session, you must perform some API call at least once every ten minutes, or the session will time out and be automatically destroyed.

HTTP Method:

URL:
  • http://www.lingr.com/api/session/create

Parameters:

api_key * Your API Key
client_type The type of your API client- if provided, must be either human or automaton. If not provided, the default is automaton. For more information, see the client type page.

(*) Required

Example Response:

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

session.verify

Verifies a Lingr API session id is alive.

HTTP Method:

URL:
  • http://www.lingr.com/api/session/verify

Parameters:

session * The session id to verify

(*) Required

Example Response:

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

session.destroy

Destroys a Lingr API session.

HTTP Method:

URL:
  • http://www.lingr.com/api/session/destroy

Parameters:

session * The session id to destroy

(*) Required

Example Response:

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