Posmoni-php HTTP RESTFul for calling Posmoni APIs
support or question [email protected]
- 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/posmoni-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 is model for calling our API and each of its there are 2 operations to use such as create and get
- Moderation
For create data use create()
/**
@param string $token
@param array $params
**/
Moderation::create($token, $params);
For query list of data use get()
/**
@param string $token
@param array $params => array("query" => "")
**/
Moderation::get($token, $params);
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