CURL_EXEC echo's out the result automatically, which means the echo on line 34 was just printing a boolean value.
Added JSON decoding to show how to make the response into an array, this is how it's done in get_petition_id.php so it seems logical that the documentation match up.
Merge pull request #11 from stolenbikes88/master

There is an error in the code of this file