Authentication

/auth
This method accepts a single parameter: api_key.

HTTP method: GET, POST

URI: http://www.tmsfactory.com/api/pro/auth/

Returns: session_id

HTTP GET
http://www.tmsfactory.com/api/pro/auth/?api_key=abcdefg12345678

In this example we attempt to authenticate a new session using an API key. The response returned by the server would be: [error_code]=>E008 [error]=>Authentication failed. API key is invalid. Our example returns an error because the API key we used does not exist (see the Error Codes documentation for a full list of errors and their corresponding code). If we were to use a valid API key the reponse would return an alpha-numeric, 32 character session id. [session_id]=>abcdefghijklmop123456 Visit the API Response page for information on other response formats.