TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkSeedEventWriteRequest req = new TbkSeedEventWriteRequest();
req.setEventId(12340L);
req.setMediaEventId("12341");
req.setKoxNickName("达人");
req.setContentUrl("url");
req.setKoxCommisionFee("20.00");
req.setMediaPlatformFee("20.00");
req.setMediaTotalFee("40.00");
req.setMediaEventStatus("SUCCESS");
req.setSecretKey("024A");
req.setCancelReason("xxx");
req.setMediaEventName("xxx");
req.setContentExpectPublishTime(StringUtils.parseDateTime("2023-02-10 23:59:59"));
req.setMediaEventType("KOC");
req.setDeliveryType("内容");
req.setDeliveryResult(100L);
req.setContentId("abcd");
req.setContentPublishTime(StringUtils.parseDateTime("2023-02-11 23:59:59"));
TbkSeedEventWriteResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkSeedEventWriteRequest req = new TbkSeedEventWriteRequest();
req.EventId = 12340L;
req.MediaEventId = "12341";
req.KoxNickName = "达人";
req.ContentUrl = "url";
req.KoxCommisionFee = "20.00";
req.MediaPlatformFee = "20.00";
req.MediaTotalFee = "40.00";
req.MediaEventStatus = "SUCCESS";
req.SecretKey = "024A";
req.CancelReason = "xxx";
req.MediaEventName = "xxx";
req.ContentExpectPublishTime = DateTime.Parse("2023-02-10 23:59:59");
req.MediaEventType = "KOC";
req.DeliveryType = "内容";
req.DeliveryResult = 100L;
req.ContentId = "abcd";
req.ContentPublishTime = DateTime.Parse("2023-02-11 23:59:59");
TbkSeedEventWriteResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkSeedEventWriteRequest;
$req->setEventId("12340");
$req->setMediaEventId("12341");
$req->setKoxNickName("达人");
$req->setContentUrl("url");
$req->setKoxCommisionFee("20.00");
$req->setMediaPlatformFee("20.00");
$req->setMediaTotalFee("40.00");
$req->setMediaEventStatus("SUCCESS");
$req->setSecretKey("024A");
$req->setCancelReason("xxx");
$req->setMediaEventName("xxx");
$req->setContentExpectPublishTime("2023-02-10 23:59:59");
$req->setMediaEventType("KOC");
$req->setDeliveryType("内容");
$req->setDeliveryResult("100");
$req->setContentId("abcd");
$req->setContentPublishTime("2023-02-11 23:59:59");
$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.seed.event.write' \
-d 'partner_id=apidoc' \
-d 'session=c7a06684-313e-4cb3-b6bf-fa22b829c2c3' \
-d 'sign=6AD21F5FEC9798193C80DB69625BA758' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+01%3A00%3A33' \
-d 'v=2.0' \
-d 'cancel_reason=xxx' \
-d 'content_expect_publish_time=2023-02-10+23%3A59%3A59' \
-d 'content_id=abcd' \
-d 'content_publish_time=2023-02-11+23%3A59%3A59' \
-d 'content_url=url' \
-d 'delivery_result=100' \
-d 'delivery_type=%E5%86%85%E5%AE%B9' \
-d 'event_id=12340' \
-d 'kox_commision_fee=20.00' \
-d 'kox_nick_name=%E8%BE%BE%E4%BA%BA' \
-d 'media_event_id=12341' \
-d 'media_event_name=xxx' \
-d 'media_event_status=SUCCESS' \
-d 'media_event_type=KOC' \
-d 'media_platform_fee=20.00' \
-d 'media_total_fee=40.00' \
-d 'secret_key=024A'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkSeedEventWriteRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.event_id=12340
req.media_event_id="12341"
req.kox_nick_name="达人"
req.content_url="url"
req.kox_commision_fee="20.00"
req.media_platform_fee="20.00"
req.media_total_fee="40.00"
req.media_event_status="SUCCESS"
req.secret_key="024A"
req.cancel_reason="xxx"
req.media_event_name="xxx"
req.content_expect_publish_time="2023-02-10 23:59:59"
req.media_event_type="KOC"
req.delivery_type="内容"
req.delivery_result=100
req.content_id="abcd"
req.content_publish_time="2023-02-11 23:59:59"
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.seed.event.write");
add_param(pRequest,"event_id","12340");
add_param(pRequest,"media_event_id","12341");
add_param(pRequest,"kox_nick_name","达人");
add_param(pRequest,"content_url","url");
add_param(pRequest,"kox_commision_fee","20.00");
add_param(pRequest,"media_platform_fee","20.00");
add_param(pRequest,"media_total_fee","40.00");
add_param(pRequest,"media_event_status","SUCCESS");
add_param(pRequest,"secret_key","024A");
add_param(pRequest,"cancel_reason","xxx");
add_param(pRequest,"media_event_name","xxx");
add_param(pRequest,"content_expect_publish_time","2023-02-10 23:59:59");
add_param(pRequest,"media_event_type","KOC");
add_param(pRequest,"delivery_type","内容");
add_param(pRequest,"delivery_result","100");
add_param(pRequest,"content_id","abcd");
add_param(pRequest,"content_publish_time","2023-02-11 23:59:59");
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.seed.event.write', {
'event_id':'12340',
'media_event_id':'12341',
'kox_nick_name':'达人',
'content_url':'url',
'kox_commision_fee':'20.00',
'media_platform_fee':'20.00',
'media_total_fee':'40.00',
'media_event_status':'SUCCESS',
'secret_key':'024A',
'cancel_reason':'xxx',
'media_event_name':'xxx',
'content_expect_publish_time':'2023-02-10 23:59:59',
'media_event_type':'KOC',
'delivery_type':'内容',
'delivery_result':'100',
'content_id':'abcd',
'content_publish_time':'2023-02-11 23:59:59'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})