I am wondering if someone write the procedure how to integrate WordAI API with google sheet.
Here is the API code for your kind information or you may visit Wordai website for details
"
function api($text,$quality,$email,$pass)
{
if(isset($text) && isset($quality) && isset($email) && isset($pass))
{
$text = urlencode($text);
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!';
}
}
//The variable quality can currently be 'Regular', 'Unique', 'Very Unique', 'Readable', or 'Very Readable'
echo api(stripslashes('Here is an example.'),'Regular','email','password');
"