Diggers
POST diggers/:id/start
The request sends a command to immediately start the digger. You can send arguments to the digger in the body of the request. Digger will use passed values as variables. This functionality is called "data on demand". For example, you can send a specific search string to a specific URL, collect the results found and download them in the dataset. Basically this functionality turning any website to an API.
Reference information about the resource:
API Endpoint | https://www.diggernaut.com/api/diggers/:id/start |
Request Format | JSON |
Response Format | JSON |
Access Level | User with paid subscription |
Limits | Yes |
Request parameters:
variables | Name-value pairs of parameters that will be used as variables [hashmap[string]string]. |
curl -v -X POST -H "Content-type: application/json" -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" https://www.diggernaut.com/api/diggers/ -d '{"variables":{"section":"CoolRobot","age":"10"}}'
HTTP/1.0 200 OK Date: Fri, 19 Aug 2016 17:36:48 GMT Server: WSGIServer/0.1 Python/2.7.12 Vary: Accept, Accept-Language, Cookie X-Frame-Options: SAMEORIGIN Content-Type: application/json Content-Language: en Allow: GET, PUT, PATCH, HEAD, OPTIONS
{ "Status": "Digger has been scheduled for start" }