TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScVegasSendStatusRequest req = new TbkScVegasSendStatusRequest();
req.setSpecialId("12345");
req.setRelationId("12345");
req.setDeviceValue("xxx");
req.setDeviceType("IMEI");
req.setActivityCategory(1L);
TbkScVegasSendStatusResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScVegasSendStatusRequest req = new TbkScVegasSendStatusRequest();
req.SpecialId = "12345";
req.RelationId = "12345";
req.DeviceValue = "xxx";
req.DeviceType = "IMEI";
req.ActivityCategory = 1L;
TbkScVegasSendStatusResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScVegasSendStatusRequest;
$req->setSpecialId("12345");
$req->setRelationId("12345");
$req->setDeviceValue("xxx");
$req->setDeviceType("IMEI");
$req->setActivityCategory("1");
$resp = $c->execute($req, $sessionKey);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=taobao.tbk.sc.vegas.send.status' \
-d 'partner_id=apidoc' \
-d 'session=03a97fa6-ad9a-4973-8b92-0bef746903c3' \
-d 'sign=8BDE7C8734FCE9AE7FF1697D01DB585F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+00%3A49%3A35' \
-d 'v=2.0' \
-d 'activity_category=1' \
-d 'device_type=IMEI' \
-d 'device_value=xxx' \
-d 'relation_id=12345' \
-d 'special_id=12345'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScVegasSendStatusRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.special_id="12345"
req.relation_id="12345"
req.device_value="xxx"
req.device_type="IMEI"
req.activity_category=1
try:
resp= req.getResponse(sessionkey)
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"taobao.tbk.sc.vegas.send.status");
add_param(pRequest,"special_id","12345");
add_param(pRequest,"relation_id","12345");
add_param(pRequest,"device_value","xxx");
add_param(pRequest,"device_type","IMEI");
add_param(pRequest,"activity_category","1");
pResponse = top_execute(pClient,pRequest,sessionKey);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.tbk.sc.vegas.send.status', {
'special_id':'12345',
'relation_id':'12345',
'device_value':'xxx',
'device_type':'IMEI',
'activity_category':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})