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