Here is the PHP code sample for simple process :
$language = 'en'; $content = 'Apart from her wedding, prom is one of the most anticipated evenings a girl grows up dreaming about.'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://aispinner.org/service/?request=rewrite"); curl_setopt($ch, CURLOPT_POST, 1); $data = array( 'domain' => 'http://localhost', 'token' => '17b88970b412eb1d4a64e7f45z18e3b8', 'content' => $content, 'level' => 85, 'language' => $language ); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $service_output = curl_exec($ch); curl_close($ch); echo $service_output;
Example Output :
{
"content":"Apart from her wedding, prom is one of the most anticipated evenings a girl grows up dreaming about.",
"status":true,
"score":80,
"rewritten_content":"In addition to their wedding, prom night is one of the most anticipated evenings girl grows up dreaming.",
"engine":""
}
Parameters :
Variable Name | Type | Example Content | Description |
---|---|---|---|
content | string |
"Original Content" | It should be string content, the content will be spun. |
domain | string |
"http://example.com" | Web site domain with http |
level | integer |
85 | Process level, it should be between 0-100 |
language | string |
"en" | Language for process, service only supports English |