Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can authenticate like this:

Code Block
languagenone
http://yourservername:portnumber/psa/api.do?function=login&username=[username]&password=[password]&company-code=[company code]	

...

Code Block
languagehtml/xml
<result><token>ae48ef19bcfd1</token><user_id>12918<<result>
   <token>a1dc42fb-d420-10feb-aaks9-89f5c0e8sk3c</token>
   <user_id>112233</user_id><id>
</result>

In case the data format is JSON, you will receive an object with properties token and user_id respectively.

Code Block
{"result":{"token":"a1dc42fb-d420-10feb-aaks9-89f5c0e8sk3c","user_id":112233}}

 

On how to handle errors, see  Error Handling and Debugging