$base_url = "https://api.change.org";$endpoint = "/v1/petitions/$petition_id/signatures";
curl_setopt_array($curl_session, array( CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_URL => $url, CURLOPT_HTTPHEADER => array('Content-Type: application/x-www-form-urlencoded'), CURLOPT_POST => true, CURLOPT_POSTFIELDS => $data));
curl_close($curl_session);