You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.