Hi, I 've been trying to build a form in order to allow user posting signatures to certain petition from my site. I try to pass the data to the api, but I'm stuck on getting the "rsig" for this.
I followed this
instructions but it gives me this response:
"Redirecting you to
https://api.change.org/es-AR"
This is how i construct the request:
$REQUEST_URL = '
https://api.change.org';
$parameters = array(
'api_key' => $API_KEY,
'timestamp' => date('c'),
'endpoint' => '/v1/petitions/'.$PETITION_ID,
'source' => '
www.fanfreedom.org',
'email' => '
laura...@xxxxx.net',
'first_name' => 'Laura',
'last_name' => 'Melo',
'address' => 'El Araucano y Fdo. Rivas',
'city' => 'Centenario',
'state_province' => 'Neuquen',
'postal_code' => '8309',
'country_code' => 'AR',
'phone' => '54 299 4545454',
'reason' => 'test reason',
);
$query_string = http_build_query($parameters);
$url = "$REQUEST_URL?$query_string";
$url .= $SECRET_TOKEN . $AUTH_KEY;
I hope you can help me, thanks.