Download the agent result

This API will create a temporary download link for agent result in CSV format

Code

$http.get("https://api.agenty.com/2.0/results/{AgentId}/csv?key={ApiKey}")
            .success(function (response) {
               console.log(response)
            }).error(function (response) {
               console.log(response) 
            });

Sample output

{
  "status_code": 200,
  "download_link": "https://results.agenty.com/xyz.csv?signature=BQUqVQSOnzv4DzBrhMt2GkG8uGE%3D"
}

Note : The download link is valid for next 24 hours only, when it was created.