|
我用的签名《(商家)通讯协议》http://open.youzan.com/doc#425
$appId = '我的id';
$appSecret = '我的秘钥';
$client = new KdtApiClient($appId, $appSecret);
$method = 'kdt.crm.customer.points.increase';//给特定手机号加积分
$params = [
'reason' => '玩游戏获得',
'points' => 1,
'mobile' => '我的手机号',
];
输出:
<pre>array(1) {
["error_response"]=>
array(2) {
["code"]=>
int(40004)
["msg"]=>
string(18) "请求非法资源"
}
}
看起来就是权限没有开通哦,这个访问其它接口没问题。 |
|
|
|
赞
···
|
|
|