Download the agent logs

This API will create a temporary download link to download the agent running logs in CSV format

Code

$http.get("https://api.agenty.com/2.0/logs/{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-logs.csv?signature=BQUqVQSOnzvzBrhMt2GkG8uGE%3D"
}

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