提问1:
taobao.tbk.coupon.get( 阿里妈妈推广券信息查询 )
这个接口中的入参me从哪获取的?
回答:
这个me就是商家在商家后台生成的优惠卷,然后在URL地址栏中会有一个me 类似于
https://uland.taobao.com/coupon/edetail?me=qXg3XtWCOSkGQASttHIRqe62AiBkZ4pvWY6tJg2JrUXcQLm7dJTvUGkZZ27JIlbwm50QiBUMH4bbLaGB9uZG%2BjKPu%2B%2B9tyZI8QkTzUh9LV2awXylEe5JjWPOg98pwnpN&st=1_11111111&pid=mm_0_0_0,%E7%82%B9%E5%BC%80%E4%B9%8B%E5%90%8E%E6%9C%89me
提问2:
taobao.tbk.coupon.get (阿里妈妈推广券信息查询) 获取数据没有数据
答:
{
"tbk_coupon_get_response":{
"data":{
"coupon_total_count":0
},
"request_id":"10fc2j9j2qfpi"
}
}
这个api是商家才能获取me参数 me的参数只有商家后台获取的
调用示例:
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkCouponGetRequest;
$req->setMe("nfr%2BYTo2k1PX18gaNN%2BIPkIG2PadNYbBnwEsv6mRavWieOoOE3L9OdmbDSSyHbGxBAXjHpLKvZbL1320ML%2BCF5FRtW7N7yJ056Lgym4X01A%3D");
$req->setItemId("123");
$req->setActivityId("sdfwe3eefsdf");
$resp = $c->execute($req);