Diggers
GET diggers/:id/sessions/:id/data/xml
The request returns a dataset scraped in a given session in XML format. If an XML template is set for the digger, it will be used to build a dataset.
Reference information about the resource:
API Endpoint | https://www.diggernaut.com/api/diggers/:id/sessions/:id/data/xml |
Response Format | JSON |
Access Level | User |
Limits | Yes |
curl -v -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" https://www.diggernaut.com/api/diggers/1/sessions/1/data/xml
HTTP/1.0 200 OK Date: Sat, 20 Aug 2016 20:43:34 GMT Vary: Accept, Accept-Language, Cookie X-Frame-Options: SAMEORIGIN Content-Type: text/xml; charset=utf-8 Content-Language: en Allow: GET, HEAD, OPTIONS
<?xml version='1.0' encoding='UTF-8'?> <items> <incident> <call_number>EP17191931</call_number> <time>6:38am</time> <grid>8503</grid> <disposition>No Info</disposition> <address>4795 Neeper Valley Rd MANITOU SPRINGS</address> <date>12/12/2017</date> <problem>Fraud</problem> </incident> <incident> <call_number>EP17191928</call_number> <time>6:34am</time> <grid>7303</grid> <disposition>No Info</disposition> <address>1309 Maxwell St STRATMOOR HILLS</address> <date>12/12/2017</date> <problem>Motor Vehicle Theft Cold</problem> </incident> </items>
Next, we move on to methods that works directly with sessions.