yc-hwc/php-shopee
最新稳定版本:1.0.2
Composer 安装命令:
composer require yc-hwc/php-shopee
包简介
PHP shopee v2 SDK
README 文档
README
php shopee v2 SDK
安装教程
composer require yc-hwc/php-shopee
用法
配置
$config = [
'shopeeUrl' => 'https://partner.test-stable.shopeemobile.com',
'partnerId' => '',
'partnerKey' => '',
'accessToken' => '',
'shopId' => '',
];
$shopeeSDK = \PHPShopee\ShopeeSDK::config($config);
店铺授权
$config = [
'shopeeUrl' => 'https://partner.test-stable.shopeemobile.com',
'partnerId' => 'xxxxxxx',
'partnerKey' => 'xxxxxxxxxxxxxx',
];
$shopeeSDK = \PHPShopee\ShopeeSDK::config($config);
$fullUrl = $shopeeSDK->shopAuth()
->api('auth_partner')
->withQueryString([
'redirect' => 'https://www.baidu.com/',
])
->fullUrl();
return redirect($fullUrl);
generate first mile tracking number
$config = [
'shopeeUrl' => 'https://partner.test-stable.shopeemobile.com',
'partnerId' => '',
'partnerKey' => '',
'accessToken' => '',
'shopId' => '',
];
$params = [
'declare_date' => '',
'quantity' => 1,
'seller_info' => [
'name' => "tom",
'address' => "xxxxxxx",
'region' => "CN",
'zipcode' => "1xxxx15",
'phone' => "186xxxxxx49"
]
]
$shopeeSDK = \PHPShopee\ShopeeSDK::config($config);
$response = $shopeeSDK->firstMile
->api('generate_firstMile_tracking_number')
->withBody($params)
->post();
print_r($response);
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-11-10