With PHP API

To authenticate using PHP, use the following:

 $api->login('User_name', 'Password', 'Company_Code');

You will get the authentication token as the result.