getTableList (REST) v1
Method: getTableList
This method retrieves list of tables for a specified profile.
REST URL
http://server_name[:port]/services/vN/reportservice/tables/?login=$login&password=$password&profileId=$profileId
Request arguments:
-
login - User name login
-
password - User password
-
profileId - Profile identifier (not null)
Response:
-
Table[] - list of available tables with each table's dimensions and metrics
Sample REST Request
http://urchin.com:9999/services/v1/reportservice/tables/?login=super_admin&password=password&profileId=1
Sample REST 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: