Datawow-php HTTP RESTFul for calling DataWow APIs
support or question support@datawow.io
- php 5.4 or above
- Built-in libcurl support.
You can install library via Compose. Please check you have installed Composer on your machine and copy below code to your composer.json
If you don't have composer then click on the link Official website to install
Copy below code to your composer.json
"datawow/datawow-php": "dev-master"
Run composer install
php composer.phar install
or (Global setup)
composer install
After you run composer install then you will have folder vendor/
to store your libs. Now you can load those libs via
require_once dirname(__FILE__).'/vendor/autoload.php';
There are 4 models for calling our APIs and each of its there are 3 operations to use such as create, list data and find by id. We're going to show you what APIs we have .
- ImageChoice
- ImageClosedQuestion
- ImageMessage
- ImagePhotoTag
- Category
- Conversation
- TextClosedQuestion
- VideoClassify
- Predictor
For create data use create()
/**
@param string $token
@param array $params
**/
ImageChoice::create($token, $params);
For query list of data use gets()
/**
@param string $token
@param array $params
**/
ImageChoice::gets($token, $params);
For find data by ID use find_id()
/**
@param string $token
@param string|int $id
**/
ImageChoice::find_id($token, $id);
Every function that being used must have $token
which is a project token and $params
is a parameter that required for each model. For $params
we're going to explanation in a usage section