TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IgoGameRankingAwardRequest req = new IgoGameRankingAwardRequest();
IgoGameRankingAwardRequest.GameRankingDTO obj1 = new IgoGameRankingAwardRequest.GameRankingDTO();
obj1.setAppId(123L);
obj1.setAppKey("this is my appkey");
obj1.setRanking(1L);
obj1.setMissionId(123L);
obj1.setBizTime("20221201");
obj1.setId("PKWIN5543");
obj1.setExtendInfo("{\"key\":\"value\"}");
obj1.setOpenId("123abc");
req.setDto(obj1);
IgoGameRankingAwardResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
IgoGameRankingAwardRequest req = new IgoGameRankingAwardRequest();
IgoGameRankingAwardRequest.GameRankingDTODomain obj1 = new IgoGameRankingAwardRequest.GameRankingDTODomain();
obj1.AppId = 123L;
obj1.AppKey = "this is my appkey";
obj1.Ranking = 1L;
obj1.MissionId = 123L;
obj1.BizTime = "20221201";
obj1.Id = "PKWIN5543";
obj1.ExtendInfo = "{\"key\":\"value\"}";
obj1.OpenId = "123abc";
req.Dto_ = obj1;
IgoGameRankingAwardResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new IgoGameRankingAwardRequest;
$dto = new GameRankingDTO;
$dto->app_id="123";
$dto->app_key="this is my appkey";
$dto->ranking="1";
$dto->mission_id="123";
$dto->biz_time="20221201";
$dto->id="PKWIN5543";
$dto->extend_info="{\"key\":\"value\"}";
$dto->open_id="123abc";
$req->setDto(json_encode($dto));
$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.igo.game.ranking.award' \
-d 'partner_id=apidoc' \
-d 'sign=F5176E1CD7F2D692DEC51D1A4D48D84E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-23+02%3A05%3A57' \
-d 'v=2.0' \
-d 'dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.IgoGameRankingAwardRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.dto="数据结构示例JSON格式"
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.igo.game.ranking.award");
add_param(pRequest,"dto","数据结构JSON示例");
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.igo.game.ranking.award', {
'dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})