PHP code example of wored / beibei-sdk
1. Go to this page and download the library: Download wored/beibei-sdk 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/ */
wored / beibei-sdk example snippets
use \Wored\BeibeiSdk\BeibeiSdk;
$config = [
'app_id' => '******',
'session' => '*******************************',
'secret' => '*******************************',
'rootUrl' => 'http://api.open.beibei.com',
];
//贝贝网SDK
$beibei = new BeibeiSdk($config);
//获取物流公司
$ret = $beibei->request('beibei.outer.logistics.company.get');