@ echo off
rem  Incident injection batch script for sample-relevance-engine REST API integration
rem  Requirements:
rem    - "Sample Plan" imported into xMatters server (form and inbound integration must be enabled)
rem    - "Access Web Service URL" from the above imported into configuration.js
rem    - valid userID for xMatters in configuration.js
rem    - encrypted password in the file specified in configuration.js
rem    - curl.exe in local directory (or in the Windows path)

curl.exe --trace-time -v -i -X POST -d "<?xml version="1.0" encoding="UTF-8"?><event><properties><building>\"Building A\", \"Building B\"</building><city>Victoria</city></properties><recipients><targetName>bsmith</targetName><targetName>Operations</targetName><targetName>tsanderson, devices: [\"Email\", \"Voice Phone\"]</targetName></recipients></event>" http://127.0.0.1:8081/http/applications_sample-plan
