maxzhang / jtt-sdk
京推推SDK
dev-master
2021-04-26 09:07 UTC
Requires
- php: >=7
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2025-03-26 17:26:58 UTC
README
基于京推推开放平台Api封装的 Composer Package 组件包.
目录结构:
- src 项目目录
安装:
$ composer require maxzhang/jtt-sdk
使用方法(参考suning-sdk):
use MaxZhang\JttSdk\Request\Update\GoodsListRequest; use MaxZhang\JttSdk\DefaultJttClient;
$req = new GoodsListRequest(); $assertArray = [ 'appid' => '123', 'appkey' => '456' ]; $client = new DefaultJttClient($assertArray['appid'], $assertArray['appkey']); $resp = $client->execute($req); print_r("\n返回响应报文:\n" . $resp);