chent1024 / top-sdk
alimama top sdk
v1.0.6
2021-03-23 07:40 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-03-05 21:44:36 UTC
README
介绍
对淘宝开放平台SDK进行改动, 方便使用命名空间调用。
版本
Version: top-sdk-php-20180326
使用
/**
* SDK工作目录
* 存放日志,TOP缓存数据
*/
if (!defined("TOP_SDK_WORK_DIR"))
{
define("TOP_SDK_WORK_DIR", storage_path('/top/'));
}
$c = new TopClient;
$c->appkey = '12497914';
$c->secretKey = '4b0f28396e072d67fae169684613bcd1';
$req = new HttpdnsGetRequest;
$req->putOtherTextParam("name","test");
$req->putOtherTextParam("value",0);
var_dump($c->execute($req));