datawow / datawow-php
HTTP RESTFul for calling DataWow APIs
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is not auto-updated.
Last update: 2025-05-02 03:16:04 UTC
README
Datawow-php HTTP RESTFul for calling DataWow APIs
support or question support@datawow.io
Requirements
- php 5.4 or above
- Built-in libcurl support.
Installation
Composer
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';
APIs explanation
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 .
Image model. We have 4 APIs
- ImageChoice
- ImageClosedQuestion
- ImageMessage
- ImagePhotoTag
Text model. We have 3 APIs
- Category
- Conversation
- TextClosedQuestion
Video model. We have 1 APIs
- VideoClassify
Prediction model. We have 1 APIs
- Predictor
Model functions
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