sentione-api
This is a PHP 5.3+ API wrapper for the SentiOne API, (*1)
Requirements
Installation
Composer
Add the following package to composer.json:, (*2)
"getfokus/sentione-api": "*"
Basic usage
To call API just use method:, (*3)
$response = $sentione->apiCall($action, array $params);
You will receive the Response object, (*4)
Example
<?php
$username = 'USERNAME';
$password = '*****';
$sentione = new SentioneApi\Client($username, $password);
$response = $sentione->apiCall('sources sentiment', [
'keyword' => 'sentione',
]);
$data = $response->getData();
var_dump($data);