Skip to content

linskiy/pp_restapi_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

PRICEPLAN REST API


$pp = new priceplaneAPI('username','password');
//получаем список переменных
$variables = $pp->getVariables();
//получаем типы данных
$measures = $pp->getMeasures();
//получаем поля клиентов
$ct = $pp->getClientTypes();

//полученине информации о продукте
try {
	echo('<pre>');
	print_r($pp->getProductById(1));
	echo('</pre>');

} catch (Exception $e) {

    print 'Error: '.$e->getMessage()."\n";

}

//пополнение баланса
$param = array(
    'amount' => 100,
    'comment' => 'Бонус за регистрацию',
    'type' => 'internal'
);
$pp->increaseBalance(1,$param);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages