So from my understanding, this call in the code below will get the 10 most recent signatures. I was just wondering if it anyone knows if it's possible to get more than this (the /signatures according to the docs has been deprecated)? And if so, if there is an upper limit (maybe the first/last top 100).
<?php
// get signatures for a Change.org petition
function getChangePetitionSignatures($url){
$CHANGE_API_KEY = 'aa21e02ce299f9742996d942844c71e24533eXXXX';
$parameters = array(
'api_key' => $CHANGE_API_KEY,
'petition_url' => $url
);
$query_string = http_build_query($parameters);
$final_request_url = "$CHANGE_REQUEST_URL?$query_string";
$response = file_get_contents($final_request_url);
$json_response = json_decode($response, true);
$petition_id = $json_response['petition_id'];
//now get the petition details for signature count
$parameters = array(
'api_key' => $CHANGE_API_KEY,
'petition_ids' => $petition_id
);
$query_string = http_build_query($parameters);
$final_request_url = "$CHANGE_REQUEST_URL?$query_string";
$response = file_get_contents($final_request_url);
return $response;
}
?>
<?php echo
?>