Skip to content

linskiy/pp_restapi_php

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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