Arguments | Return value | REST (XML) example | REST (JSON) example | XML-RPC example
If calling by XML-RPC, note that this method takes a single struct as input, with the following keys:
marcmarcspasswordTrue123576abcdef657213486400POST /api/xml/peopleaggregator/login HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 33
login=marc&password=marcspassword
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 213
<response>
<authToken>123576abcdef6572134</authToken>
<success>true</success>
<tokenLifetime>86400</tokenLifetime>
</response>
POST /api/json/peopleaggregator/login HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 33
login=marc&password=marcspassword
HTTP/1.1 200 OK
Content-Type: application/x-javascript
Content-Length: 77
{"authToken": "123576abcdef6572134", "success": true, "tokenLifetime": 86400}
POST /api/xmlrpc HTTP/1.1
Content-Type: text/xml
Content-Length: 977
<?xml version='1.0'?>
<methodCall>
<methodName>peopleaggregator.login</methodName>
<params>
<param>
<value><struct>
<member>
<name>login</name>
<value><string>marc</string></value>
</member>
<member>
<name>password</name>
<value><string>marcspassword</string></value>
</member>
</struct></value>
</param>
</params>
</methodCall>
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 1191
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><struct>
<member>
<name>authToken</name>
<value><string>123576abcdef6572134</string></value>
</member>
<member>
<name>success</name>
<value><boolean>1</boolean></value>
</member>
<member>
<name>tokenLifetime</name>
<value><int>86400</int></value>
</member>
</struct></value>
</param>
</params>
</methodResponse>