PHP code example of kulizh / profitbase-api
1. Go to this page and download the library: Download kulizh/profitbase-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kulizh / profitbase-api example snippets
$profitbaseApi = new Profitbase\Api('app-64e8axxxcdca3', 'pbxxxx');
// Получение списка ЖК
$complex_list = $profitbaseApi->model('complex')->getList();
// Получение списка корпусов
$buildings_list = $profitbaseApi->model('building')->getList();
// Получение списка планировок
$layouts_list = $profitbaseApi->model('layout')->getList();
// Получение списка квартир
$rooms_list = $profitbaseApi->model('room')->getList();