getData Sample Request and Response (SOAP) --Beta Release--
Sample SOAP Request for getData
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:v1="https://urchin.com/api/urchin/v1/"> <soap:Header> </soap:Header> <soap:Body> <v1:getData> <login>super_admin</login> <password>password</password> <ids>7</ids> <start-index>1</start-index> <max-results>2</max-results> <start-date>2008-01-01</start-date> <end-date>2009-01-01</end-date> <dimensions>u:month</dimensions> <metrics>u:hits,u:bytes</metrics> <sort>u:month</sort> </v1:getData> </soap:Body> </soap:Envelope>
Sample SOAP Response
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Header/> <soapenv:Body> <tns:getDataResponse xmlns:tns="https://urchin.com/api/urchin/v1/"> <record> <recordId>1</recordId> <dimensions> <dimension name="u:month">2008-02-00T00:00:00Z</dimension> </dimensions> <metrics> <u:hits xmlns:u="https://urchin.com/api/urchin/v1/">836</u:hits> <u:bytes xmlns:u="https://urchin.com/api/urchin/v1/">1953960</u:bytes> </metrics> </record> <record> <recordId>2</recordId> <dimensions> <dimension name="u:month">2008-02-00T00:00:00Z</dimension> </dimensions> <metrics> <u:hits xmlns:u="https://urchin.com/api/urchin/v1/">6322</u:hits> <u:bytes xmlns:u="https://urchin.com/api/urchin/v1/">2291085200</u:bytes> </metrics> </record> </tns:getDataResponse> </soapenv:Body> </soapenv:Envelope>