Skip to content

RecognizeIm/php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Recognize.im API

Recognize.im is providing API for Image Recognition. This module is a sample PHP connector to the API.

Installation

Just download the content of the lib/ directory and include the classes in your project or use composer:

$ composer.phar require "recognizeim/php-client" "dev-master"

Or add the following to your composer.json in the require section:

"require": {
    ... other requirements ...,
    "recognizeim/php-client": "dev-master"
}

Usage

To initialize your RecognizeIm call the init static method:

\RecognizeImAPI::init(array(
    'URL'       => $url,
    'CLIENT_ID' => $client_id,
    'API_KEY'   => $api_key,
    'CLAPI_KEY' => $clapi_key
));

You'll find a full example in the example/ directory.

Authorization

You don't need to call method auth by yourself. Module object will authorize you when needed, you just need do provide valid credentials. You can get them from your account tab