salce, ancora grazie in anticipo
ho installato sourcerer ed all'interno del modulo personalizzato html su inserirsci codice si apre la finestra cosi:
{source}
<!-- You can place html anywhere within the source tags -->
<script language="javascript" type="text/javascript">
// You can place JavaScript like this
</script>
<?php
// You can place PHP like this
?>
{/source}
ho provato ad inserire il codice di esempio su con api key ma ancora nulla:
<?php
$API_KEY = 5003520e8a003612049a811c7279259d3128fbe afa6d90ae267bf7786e92ef82;
$REQUEST_URL = '
https://api.change.org/v1/petitions/get_id';$PETITION_URL = '
https://www.change.org/p/io-proviamo';$parameters = array(
'api_key' => $API_KEY,
'petition_url' => $PETITION_URL
);
$query_string = http_build_query($parameters);
$final_request_url = "$REQUEST_URL?$query_string";
$response = file_get_contents($final_request_url);
$json_response = json_decode($response, true);
$petition_id = $json_response['petition_id'];
echo $petition_id;
?>
forse sono sbagliati i parametri?
grazie ancora