I'm going to keep building this out as I work with xMatters more
- xMatters account - If you don't have one, get one!
As always, make sure to develop and test on a non-production environment. Running this code unmodified in production could have unintended consequences.
When working in the Integration Builder, using console.log(variable);
is helpful when you want to see if something is being set. To get the output of a JSON object, such as the callback
being passed into your integration, you'll want to use the following to output and format it into a readable JSON format.
console.log(JSON.stringify(callback, null, 2));
Add this code anywhere you need to see the raw response from the xMatters API -- great for troubleshooting connection or data formatting issues.
print '\n\n\n'+str(response.json())+'\n\n\n'
print str(data_string)+'\n\n\n'