wordai spintax function needs to be improved

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

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



;-)
 
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.
 
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
 
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!';
}
}
 
12.jpg
This does not succeed
 
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.
 
ok ------ --- --- :Dthanks
 

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