I'm starting with a basic count alerts request:
var url = "https://api.eu.opsgenie.com/v2/alerts/count";
I obviously add the Authentication header and the Content type part...
headers.push( new Header( "Content-Type", "application/json; charset=UTF-8" ) );
printing the response results in something like this:
Last time I saw something like this the response was compressed (gzip). I don't see anything refering to deflate of gzip in the documentation, everythings like a fairy tail there.
Any help apprichiated!
For the other fellow SM developers : the doHTTPRequest has an argument (Binary response data) : I don't even know why I've set it to true but that seemed to be the problem. Just set it to false and the response is in clear JSON string format.
In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events