TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkDgVegasSendStatusRequest req = new TbkDgVegasSendStatusRequest();
req.setRelationId("12345");
req.setSpecialId("12345");
req.setDeviceValue("xxx");
req.setDeviceType("IMEI");
req.setThorBizCode("xxx");
req.setPid("mm_0_0_0");
req.setActivityCategory(1L);
TbkDgVegasSendStatusResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkDgVegasSendStatusRequest req = new TbkDgVegasSendStatusRequest();
req.RelationId = "12345";
req.SpecialId = "12345";
req.DeviceValue = "xxx";
req.DeviceType = "IMEI";
req.ThorBizCode = "xxx";
req.Pid = "mm_0_0_0";
req.ActivityCategory = 1L;
TbkDgVegasSendStatusResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkDgVegasSendStatusRequest;
$req->setRelationId("12345");
$req->setSpecialId("12345");
$req->setDeviceValue("xxx");
$req->setDeviceType("IMEI");
$req->setThorBizCode("xxx");
$req->setPid("mm_0_0_0");
$req->setActivityCategory("1");
$resp = $c->execute($req);
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.dg.vegas.send.status' \
-d 'partner_id=apidoc' \
-d 'sign=B91A3A81361E713461A5246B13D9856E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+01%3A03%3A09' \
-d 'v=2.0' \
-d 'activity_category=1' \
-d 'device_type=IMEI' \
-d 'device_value=xxx' \
-d 'pid=mm_0_0_0' \
-d 'relation_id=12345' \
-d 'special_id=12345' \
-d 'thor_biz_code=xxx'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkDgVegasSendStatusRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.relation_id="12345"
req.special_id="12345"
req.device_value="xxx"
req.device_type="IMEI"
req.thor_biz_code="xxx"
req.pid="mm_0_0_0"
req.activity_category=1
try:
resp= req.getResponse()
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.dg.vegas.send.status");
add_param(pRequest,"relation_id","12345");
add_param(pRequest,"special_id","12345");
add_param(pRequest,"device_value","xxx");
add_param(pRequest,"device_type","IMEI");
add_param(pRequest,"thor_biz_code","xxx");
add_param(pRequest,"pid","mm_0_0_0");
add_param(pRequest,"activity_category","1");
pResponse = top_execute(pClient,pRequest,NULL);
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.dg.vegas.send.status', {
'relation_id':'12345',
'special_id':'12345',
'device_value':'xxx',
'device_type':'IMEI',
'thor_biz_code':'xxx',
'pid':'mm_0_0_0',
'activity_category':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})