clientpad/clientpad-api-php-wrapper

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
There is no license information available for the latest version (dev-master) of this package.

dev-master 2018-01-15 05:00 UTC

This package is auto-updated.

Last update: 2021-10-17 11:58:06 UTC


README

Prefered way to use composer: composer require "clientpad/clientpad-api-php-wrapper":"@dev"

Usage

$wrapper = new \clientpad\api\CPWrapper;
$wrapper->auth_name = 'heres_auth_name';
$wrapper->auth_pass = 'heres_auth_pass';
$wrapper->site_url = 'http://mysuperAABASFASdomen.clientpad.ru'; //heres your clientpad url
$response = $wrapper->createOrder("This is a body of order");

print_r($response); //response will be like "{"body":"This is a body of order", "id":7}"
//so its $response in our case is object already and we can use it like $response->body and do with it all what want