getfokus / sentione-api
PHP SentiOne API for PHP 5.3+
dev-devel
2013-11-06 23:38 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-04-08 04:15:53 UTC
README
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);