getfokus/sentione-api

PHP SentiOne API for PHP 5.3+


Keywords
sentione
License
MIT

Documentation

sentione-api

This is a PHP 5.3+ API wrapper for the SentiOne API


Requirements

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);