English 
 

 

Esempio Codice Estimatore Traffico scritto in PHP.

$ch = curl_init();
$value = 'http://www.wordsfinder.com/api_traffic_code.php';
curl_setopt($ch, CURLOPT_URL, $value);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt( $ch, CURLOPT_POSTFIELDS, 'country=US&user=YOUR_API_KEY&word='.$word);  
$xml = curl_exec($ch);
curl_close($ch);

Esempio di Chiamata via FORM POST

<form action="http://www.wordsfinder.com/api_traffic_code.php" method="post" enctype="multipart/form-data" name="form">
<input name="word" type="text">
<input name= "country" type="hidden" value="US" >
<input name= "user" type="hidden" value="YOUR_API_KEY" >
<input name="submit" type="submit" value="Find traffic" />
</form>