spin script

  • Автор темы Автор темы rayly
  • Дата начала Дата начала

rayly

Новичок
Регистрация
03.02.2013
Сообщения
8
Реакции
0
Баллы
1
Hi, do anyone know how to add a script in projectmaker?
I have a script of spin rewriter and i'm trying to add it to my projet but it only give me error's
 
Use POST to their api or you can put up a php page on one of your sites and use that to get your spun text.
 
I try it but keep receiving error's
do you have any demo or video on how to do it?
 
you are a genius! thank you!!
 
the video was very good and helpfull.
where can I find the text file that he is talking about?

and I am useing an other spin writer and the authentication is not the same I think
 
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 = "test@example.com"; // 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>";

?>
 
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 = "test@example.com"; // 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>";

?>

{"status":"ERROR","response":"Email address and unique API key are both required. At least one is missing."}
 
can you give me an example?
 
can you give me an example?

Capture.PNG
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)