PHP code example of spojenet / ipexb2b
1. Go to this page and download the library: Download spojenet/ipexb2b 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/ */
spojenet / ipexb2b example snippets
/**
* Write logs as:
*/
define('LOG_NAME', 'IPEXB2B_Test');
define('LOG_TYPE', 'syslog');
/*
* URL ipex-b2b API
*/
define('IPEX_URL', 'https://restapi.ipex.cz');
/*
* Uživatel ipex-b2b API
*/
define('IPEX_LOGIN', 'firma_api');
/*
* Heslo ipex-b2b API
*/
define('IPEX_PASSWORD', 'Ceeghul');
$pravnik = new \IPEXB2B\Rights(null,[
'url' => 'https://testapi.ipex.cz',
'user' => 'resttest',
'password' => '-dj3x21xaA_'
]);
class Simcards extends /IPEXB2B/ApiClient
{
/**
* Evidence užitá objektem.
*
* @var string
*/
public $evidence = 'merna-jednotka';
}
$jednotky = new Simcards();
print_r( $jednotky->requestData() );
json
""deb/ipex-b2b": "*",
"deb/ease-core": "*"
},
"repositories": [
{
"type": "path",
"url": "/usr/share/php/IPEXB2B",
"options": {
"symlink": true
}
},
{
"type": "path",
"url": "/usr/share/php/EaseCore",
"options": {
"symlink": true
}
}
]