getTableList (SOAP) v1
Method: getTableList
This method retrieves the list of tables for a specified profile.
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 tables --> <getTableList> <login>LOGIN</login> <password>PASSWORD</password> <profileId>PROFILE_ID</profileId> </getTableList> </env:Body> </env:Envelope>
Request arguments:
-
login - User name login
-
password - User password
-
profileId - Profile identifier (not null) li>
Response:
-
Table[] - list of available tables with each table's dimensions and metrics
Request/Response samples
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 tables --> <getTableList> <login>super_admin</login> <password>password</password> <profileId>1</profileId> </getTableList> </env:Body> </env:Envelope>
Sample SOAP response
<tns:getTableListResponse xmlns:tns="https://urchin.com/api/urchin/v1/"> <table> <tableId>1</tableId> <dimensions> <dimension>u:utm_source</dimension> <dimension>u:utm_medium</dimension> <dimension>u:utm_campaign</dimension> </dimensions> <metrics> <metric>u:pages</metric> <metric>u:visits</metric> <metric>u:transactions</metric> <metric>u:revenue</metric> <metric>u:responses</metric> <metric>u:impressions</metric> <metric>u:clicks</metric> <metric>u:cost</metric> <metric>u:goals1</metric> <metric>u:goals2</metric> <metric>u:goals3</metric> <metric>u:goals4</metric> </metrics> </table> </tns:getTableListResponse>
Java and .Net C# samples
The following samples are available for this method: