I build the template It work but no result
the reason is it can not read the email adress and the API code, I have try out a few thing's with out result
this is the API php :
<?php
// Spin Rewriter API settings - authentication:
$email_address = "
[email protected]"; // your Spin Rewriter email address goes here
$api_key = "1ab234c#d5e67fg_h8ijklm?901n234"; // your unique Spin Rewriter API key goes here
// Include the Spin Rewriter API SDK.
require_once("SpinRewriterAPI.php");
// Authenticate yourself.
$spinrewriter_api = new SpinRewriterAPI($email_address, $api_key);
// (optional) Set whether Spin Rewriter should only use synonyms (where available) when generating spun text.
$spinrewriter_api->setUseOnlySynonyms(false);
/*
* IMPORTANT:
*
* When using the action 'unique_variation_from_spintax', your text
* should already contain valid {first option|second option} spinning syntax.
*
* No additional processing is done on your text, Spin Rewriter simply
* provides one of the unique variations of the given (already spun) text.
*/
$text = "John {will|will certainly} {book|make a reservation for} a {room|hotel suite}.";
// Make the actual API request and save response as a native PHP array.
$api_response = $spinrewriter_api->getUniqueVariationFromSpintax($text);
// Output the API response.
echo "<b>API response:</b> <br /><br /> \n\n<pre>";
print_r($api_response);
echo "</pre>";
?>