getAccountList (SOAP) v1
Method: getAccountList
This method retrieves a list of accounts for an authenticated user.
SOAP request:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:v1="https://urchin.com/api/urchin/v1/">
<soap:Header/>
<soap:Body>
<v1:getAccountList>
<login>LOGIN</login>
<password>PASSWORD</password>
</v1:getAccountList>
</soap:Body>
</soap:Envelope>
Request arguments:
-
login - user name login
-
password - user password
Response:
-
Account[] - List of available accounts for authenticated user.
Sample SOAP Request
<?xml version="1.0"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<!-- Retrieves list of accounts -->
<getAccountList>
<login>super_admin</login>
<password>password</password>
</getAccountList>
</env:Body>
</env:Envelope
Sample SOAP response
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header/>
<soapenv:Body>
<tns:getAccountListResponse xmlns:tns="https://urchin.com/api/urchin/v1/">
<account>
<accountId>1</accountId>
<accountName>(NONE)</accountName>
</account>
<account>
<accountId>2</accountId>
<accountName>account_soap</accountName>
<contactName>SOAP Administrator Account</contactName>
<emailAddress>administrator@urchin.com</emailAddress>
</account>
<accountId>3</accountId>
<accountName>PM_account</accountName>
<contactName>Simple account</contactName>
</account>
</tns:getAccountListResponse>
</soapenv:Body>
</soapenv:Envelope>
Java and .Net C# samples