TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleGoosefishPromotionActivityInfoQueryRequest req = new AlibabaIdleGoosefishPromotionActivityInfoQueryRequest();
AlibabaIdleGoosefishPromotionActivityInfoQueryRequest.PromotionActivityQueryParam obj1 = new AlibabaIdleGoosefishPromotionActivityInfoQueryRequest.PromotionActivityQueryParam();
obj1.setUniqueKey("test");
obj1.setBookTime("1693556725");
obj1.setMaterialId(101010L);
obj1.setTaskId(101010L);
req.setPromotionActivityQueryParam(obj1);
AlibabaIdleGoosefishPromotionActivityInfoQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleGoosefishPromotionActivityInfoQueryRequest req = new AlibabaIdleGoosefishPromotionActivityInfoQueryRequest();
AlibabaIdleGoosefishPromotionActivityInfoQueryRequest.PromotionActivityQueryParamDomain obj1 = new AlibabaIdleGoosefishPromotionActivityInfoQueryRequest.PromotionActivityQueryParamDomain();
obj1.UniqueKey = "test";
obj1.BookTime = "1693556725";
obj1.MaterialId = 101010L;
obj1.TaskId = 101010L;
req.PromotionActivityQueryParam_ = obj1;
AlibabaIdleGoosefishPromotionActivityInfoQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleGoosefishPromotionActivityInfoQueryRequest;
$promotion_activity_query_param = new PromotionActivityQueryParam;
$promotion_activity_query_param->unique_key="test";
$promotion_activity_query_param->book_time="1693556725";
$promotion_activity_query_param->material_id="101010";
$promotion_activity_query_param->task_id="101010";
$req->setPromotionActivityQueryParam(json_encode($promotion_activity_query_param));
$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=alibaba.idle.goosefish.promotion.activity.info.query' \
-d 'partner_id=apidoc' \
-d 'session=5817666e-ddb6-409f-a214-20de04250d80' \
-d 'sign=F5F5C88E8196C585883E21D2E5509464' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+15%3A42%3A26' \
-d 'v=2.0' \
-d 'promotion_activity_query_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleGoosefishPromotionActivityInfoQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.promotion_activity_query_param="数据结构示例JSON格式"
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,"alibaba.idle.goosefish.promotion.activity.info.query");
add_param(pRequest,"promotion_activity_query_param","数据结构JSON示例");
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('alibaba.idle.goosefish.promotion.activity.info.query', {
'promotion_activity_query_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})