PHP code example of lok0613 / alchemyapi
1. Go to this page and download the library: Download lok0613/alchemyapi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lok0613 / alchemyapi example snippets
use Lok0613\AlchemyApi\AlchemyApi;
$alchemyApi = new AlchemyApi('api-key');
$res = $alchemyApi->getEmotion('text', [
'text' => 'I go to school by bus',
]);
POST /text/TextGetEmotion