wordai spintax function needs to be improved

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6
wordai turing provides five functions, zenno only one, wordai the API is to support these five features, look zenno provide all the functionality to select

1.jpg

2.jpg



;-)
 

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Seems like they upgraded their API.
At the moment you can use only those functions which are already presented in this action. You cannot add anything by yourself.
If you have enough knowledge you can add their API to your project.
 

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6
oh, no ;:bc:

Now do a lot of steps, I do not know how to use zennoposter post function is always an error; uses javascript now and there will be a lot of steps, one step can not be put in place, which I hope can upgrade this feature
 

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6
I hope to get a post case...........
this is API

function api($text,$quality,$email,$pass)
{
if(isset($text) && isset($quality) && isset($email) && isset($pass))
{
$text = urlencode($text);
$ch = curl_init('http://wordai.com/users/regular-api.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "s=$text&quality=$quality&email=$email&pass=$pass&output=json");
$result = curl_exec($ch);
curl_close ($ch);
return $result;
}
else
{
return 'Error: Not All Variables Set!';
}
}
 

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6
12.jpg
This does not succeed
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Of course it doesn't. You can do it in a c# action by using the following example...
Код:
http://stackoverflow.com/questions/16430998/php-to-c-sharp-conversion
But in your screenshot you haven't set the data type which should be urlencoded. Also you have to put your variables like {-Variable.text-} in place of $text in the post string. Same goes for quality, username and password. Don't know if this POST action will work like that, but the c# should.
 

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6
ok ------ --- --- :Dthanks
 

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