TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkSfAgentAbnormalReportRequest req = new TbkSfAgentAbnormalReportRequest();
req.setAccountId("123");
req.setAgentId("134");
req.setBizCapability("PRIVATE_CHAT");
req.setDescription("接粉号拉群异常");
req.setTimeStamp(1750940789516L);
req.setAgentName("1号");
TbkSfAgentAbnormalReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkSfAgentAbnormalReportRequest req = new TbkSfAgentAbnormalReportRequest();
req.AccountId = "123";
req.AgentId = "134";
req.BizCapability = "PRIVATE_CHAT";
req.Description = "接粉号拉群异常";
req.TimeStamp = 1750940789516L;
req.AgentName = "1号";
TbkSfAgentAbnormalReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkSfAgentAbnormalReportRequest;
$req->setAccountId("123");
$req->setAgentId("134");
$req->setBizCapability("PRIVATE_CHAT");
$req->setDescription("接粉号拉群异常");
$req->setTimeStamp("1750940789516");
$req->setAgentName("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.sf.agent.abnormal.report' \
-d 'partner_id=apidoc' \
-d 'sign=179D4C97D0F7B248C9C74BC918140E73' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-08-26+15%3A14%3A06' \
-d 'v=2.0' \
-d 'account_id=123' \
-d 'agent_id=134' \
-d 'agent_name=1%E5%8F%B7' \
-d 'biz_capability=PRIVATE_CHAT' \
-d 'description=%E6%8E%A5%E7%B2%89%E5%8F%B7%E6%8B%89%E7%BE%A4%E5%BC%82%E5%B8%B8' \
-d 'time_stamp=1750940789516'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkSfAgentAbnormalReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.account_id="123"
req.agent_id="134"
req.biz_capability="PRIVATE_CHAT"
req.description="接粉号拉群异常"
req.time_stamp=1750940789516
req.agent_name="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.sf.agent.abnormal.report");
add_param(pRequest,"account_id","123");
add_param(pRequest,"agent_id","134");
add_param(pRequest,"biz_capability","PRIVATE_CHAT");
add_param(pRequest,"description","接粉号拉群异常");
add_param(pRequest,"time_stamp","1750940789516");
add_param(pRequest,"agent_name","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.sf.agent.abnormal.report', {
'account_id':'123',
'agent_id':'134',
'biz_capability':'PRIVATE_CHAT',
'description':'接粉号拉群异常',
'time_stamp':'1750940789516',
'agent_name':'1号'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})