TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScUvidBehaviorReportRequest req = new TbkScUvidBehaviorReportRequest();
req.setUvid("csadcdcdsacds");
req.setItemId("cadsc-cdcd");
req.setScdId(1000001L);
req.setActionTime(1724746568070L);
req.setAction(1L);
req.setTaskId(11L);
req.setChannel("1");
req.setCallBackUrl("http://ccc");
req.setOaid("oaid");
req.setOaidMd5("oaidmd5");
req.setIdfa("idfa");
req.setIdfaMd5("idfaMd5");
req.setAndroidId("androidId");
req.setAndroidIdMd5("androidIdMd5");
req.setCaid("caid");
req.setCaidMd5("caidMd5");
req.setCaidVersion("caidVersion");
req.setCaid2("caid2");
req.setCaid2Md5("caid2Md5");
req.setCaid2Version("caid2Version");
req.setAdzoneId(123L);
req.setSiteId(123L);
TbkScUvidBehaviorReportResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScUvidBehaviorReportRequest req = new TbkScUvidBehaviorReportRequest();
req.Uvid = "csadcdcdsacds";
req.ItemId = "cadsc-cdcd";
req.ScdId = 1000001L;
req.ActionTime = 1724746568070L;
req.Action = 1L;
req.TaskId = 11L;
req.Channel = "1";
req.CallBackUrl = "http://ccc";
req.Oaid = "oaid";
req.OaidMd5 = "oaidmd5";
req.Idfa = "idfa";
req.IdfaMd5 = "idfaMd5";
req.AndroidId = "androidId";
req.AndroidIdMd5 = "androidIdMd5";
req.Caid = "caid";
req.CaidMd5 = "caidMd5";
req.CaidVersion = "caidVersion";
req.Caid2 = "caid2";
req.Caid2Md5 = "caid2Md5";
req.Caid2Version = "caid2Version";
req.AdzoneId = 123L;
req.SiteId = 123L;
TbkScUvidBehaviorReportResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScUvidBehaviorReportRequest;
$req->setUvid("csadcdcdsacds");
$req->setItemId("cadsc-cdcd");
$req->setScdId("1000001");
$req->setActionTime("1724746568070");
$req->setAction("1");
$req->setTaskId("11");
$req->setChannel("1");
$req->setCallBackUrl("http://ccc");
$req->setOaid("oaid");
$req->setOaidMd5("oaidmd5");
$req->setIdfa("idfa");
$req->setIdfaMd5("idfaMd5");
$req->setAndroidId("androidId");
$req->setAndroidIdMd5("androidIdMd5");
$req->setCaid("caid");
$req->setCaidMd5("caidMd5");
$req->setCaidVersion("caidVersion");
$req->setCaid2("caid2");
$req->setCaid2Md5("caid2Md5");
$req->setCaid2Version("caid2Version");
$req->setAdzoneId("123");
$req->setSiteId("123");
$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.uvid.behavior.report' \
-d 'partner_id=apidoc' \
-d 'session=b5555f01-2553-4f86-9af3-f2d528a0023a' \
-d 'sign=B5A7692DFF676D0C423BE0FCEC1CC3A4' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+01%3A10%3A16' \
-d 'v=2.0' \
-d 'action=1' \
-d 'action_time=1724746568070' \
-d 'adzone_id=123' \
-d 'android_id=androidId' \
-d 'android_id_md5=androidIdMd5' \
-d 'caid=caid' \
-d 'caid2=caid2' \
-d 'caid2_md5=caid2Md5' \
-d 'caid2_version=caid2Version' \
-d 'caid_md5=caidMd5' \
-d 'caid_version=caidVersion' \
-d 'call_back_url=http%3A%2F%2Fccc' \
-d 'channel=1' \
-d 'idfa=idfa' \
-d 'idfa_md5=idfaMd5' \
-d 'item_id=cadsc-cdcd' \
-d 'oaid=oaid' \
-d 'oaid_md5=oaidmd5' \
-d 'scd_id=1000001' \
-d 'site_id=123' \
-d 'task_id=11' \
-d 'uvid=csadcdcdsacds'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScUvidBehaviorReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.uvid="csadcdcdsacds"
req.item_id="cadsc-cdcd"
req.scd_id=1000001
req.action_time=1724746568070
req.action=1
req.task_id=11
req.channel="1"
req.call_back_url="http://ccc"
req.oaid="oaid"
req.oaid_md5="oaidmd5"
req.idfa="idfa"
req.idfa_md5="idfaMd5"
req.android_id="androidId"
req.android_id_md5="androidIdMd5"
req.caid="caid"
req.caid_md5="caidMd5"
req.caid_version="caidVersion"
req.caid2="caid2"
req.caid2_md5="caid2Md5"
req.caid2_version="caid2Version"
req.adzone_id=123
req.site_id=123
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.uvid.behavior.report");
add_param(pRequest,"uvid","csadcdcdsacds");
add_param(pRequest,"item_id","cadsc-cdcd");
add_param(pRequest,"scd_id","1000001");
add_param(pRequest,"action_time","1724746568070");
add_param(pRequest,"action","1");
add_param(pRequest,"task_id","11");
add_param(pRequest,"channel","1");
add_param(pRequest,"call_back_url","http://ccc");
add_param(pRequest,"oaid","oaid");
add_param(pRequest,"oaid_md5","oaidmd5");
add_param(pRequest,"idfa","idfa");
add_param(pRequest,"idfa_md5","idfaMd5");
add_param(pRequest,"android_id","androidId");
add_param(pRequest,"android_id_md5","androidIdMd5");
add_param(pRequest,"caid","caid");
add_param(pRequest,"caid_md5","caidMd5");
add_param(pRequest,"caid_version","caidVersion");
add_param(pRequest,"caid2","caid2");
add_param(pRequest,"caid2_md5","caid2Md5");
add_param(pRequest,"caid2_version","caid2Version");
add_param(pRequest,"adzone_id","123");
add_param(pRequest,"site_id","123");
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.uvid.behavior.report', {
'uvid':'csadcdcdsacds',
'item_id':'cadsc-cdcd',
'scd_id':'1000001',
'action_time':'1724746568070',
'action':'1',
'task_id':'11',
'channel':'1',
'call_back_url':'http://ccc',
'oaid':'oaid',
'oaid_md5':'oaidmd5',
'idfa':'idfa',
'idfa_md5':'idfaMd5',
'android_id':'androidId',
'android_id_md5':'androidIdMd5',
'caid':'caid',
'caid_md5':'caidMd5',
'caid_version':'caidVersion',
'caid2':'caid2',
'caid2_md5':'caid2Md5',
'caid2_version':'caid2Version',
'adzone_id':'123',
'site_id':'123'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})