PHP code example of duan617 / laravel-doudian
1. Go to this page and download the library: Download duan617/laravel-doudian 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/ */
duan617 / laravel-doudian example snippets
bash
php artisan vendor:publish --provider="Abbotton\DouDian\DouDianServiceProvider"
php
$response = app('doudian')->shop->getShopCategory(['cid' => 0]);
dd($response);
php
app('doudian')->setShopId($shopId)->order->orderDetail(["shop_order_id"=>'5557097346351159555']);