Account API  Turing API

WordAi Account API

The WordAi API is designed to be extremely simple and easy to understand. All you have to do is make an HTTP request with POST variables. Our example below is a PHP example that uses cURL (which can usually be copied/pasted into a PHP script and will work out of the box), but you can use whatever programming language you want. Sample code in other languages is coming soon!

Example Code:

function api($email,$pass)
   if(isset($email) && isset($pass))
      $ch = curl_init('');
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt ($ch, CURLOPT_POST, 1);
      curl_setopt ($ch, CURLOPT_POSTFIELDS, "email=$email&pass=$pass");
      $result = curl_exec($ch);
      curl_close ($ch);
      return $result;
      return 'Error: Not All Variables Set!';
echo api('email','password');

Example JSON Output:

   "Turing Usage":1373,
   "Turing Limit":150000,