TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCloudgameAccountMerchantrequestCallbackRequest req = new AlibabaCloudgameAccountMerchantrequestCallbackRequest();
AlibabaCloudgameAccountMerchantrequestCallbackRequest.YuanMiaoMerchantBizRequestCallbackRequest obj1 = new AlibabaCloudgameAccountMerchantrequestCallbackRequest.YuanMiaoMerchantBizRequestCallbackRequest();
obj1.setRequestTime(1647582802256L);
obj1.setRequestType("2");
obj1.setData("{\"aasStatus\":true,\"realNameStatus\":true,\"activateStatus\":true}");
obj1.setMerchantId("NETEASE");
obj1.setRequestId("12df46422e7df53f1e20e7547a7edc7f");
obj1.setSign("oG8+O6GyelWEA2nbByrXsyUTz3Y+FyQi1G0jHfzGK2Lcx2WsyeK84tZtlSMmfGf/1KYgYdtTMuLkbDgM1QCWziSwYw+yOWwr+JkVToZirLoqoiIfbQ0hI7wZiwG9behr69Z/+BckLdn7SWqVwY96Qqo9QF8rKB47GEkNV+Q/AoQtolk843l/vi6iZmN2hLc5q+KcEVRsKFPvEljVCIbnX8YBzl7vBeE/HIshV2EWqYwUmxFG3G1Yv86bM1h9ZM51yyu+iysHfcNNniY9WJn0Pq7vlcb8PL369KcQZ5tcJCJGiEjrKZiP0ZWDyd+mvgf9bOHXSZLla49C/UMNmx/7UQ==");
obj1.setSignMethod("SHA256_WITH_RSA2048");
req.setYuanMiaoMerchantBizRequestCallbackRequest(obj1);
AlibabaCloudgameAccountMerchantrequestCallbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaCloudgameAccountMerchantrequestCallbackRequest req = new AlibabaCloudgameAccountMerchantrequestCallbackRequest();
AlibabaCloudgameAccountMerchantrequestCallbackRequest.YuanMiaoMerchantBizRequestCallbackRequestDomain obj1 = new AlibabaCloudgameAccountMerchantrequestCallbackRequest.YuanMiaoMerchantBizRequestCallbackRequestDomain();
obj1.RequestTime = 1647582802256L;
obj1.RequestType = "2";
obj1.Data = "{\"aasStatus\":true,\"realNameStatus\":true,\"activateStatus\":true}";
obj1.MerchantId = "NETEASE";
obj1.RequestId = "12df46422e7df53f1e20e7547a7edc7f";
obj1.Sign = "oG8+O6GyelWEA2nbByrXsyUTz3Y+FyQi1G0jHfzGK2Lcx2WsyeK84tZtlSMmfGf/1KYgYdtTMuLkbDgM1QCWziSwYw+yOWwr+JkVToZirLoqoiIfbQ0hI7wZiwG9behr69Z/+BckLdn7SWqVwY96Qqo9QF8rKB47GEkNV+Q/AoQtolk843l/vi6iZmN2hLc5q+KcEVRsKFPvEljVCIbnX8YBzl7vBeE/HIshV2EWqYwUmxFG3G1Yv86bM1h9ZM51yyu+iysHfcNNniY9WJn0Pq7vlcb8PL369KcQZ5tcJCJGiEjrKZiP0ZWDyd+mvgf9bOHXSZLla49C/UMNmx/7UQ==";
obj1.SignMethod = "SHA256_WITH_RSA2048";
req.YuanMiaoMerchantBizRequestCallbackRequest_ = obj1;
AlibabaCloudgameAccountMerchantrequestCallbackResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaCloudgameAccountMerchantrequestCallbackRequest;
$yuan_miao_merchant_biz_request_callback_request = new YuanMiaoMerchantBizRequestCallbackRequest;
$yuan_miao_merchant_biz_request_callback_request->request_time="1647582802256";
$yuan_miao_merchant_biz_request_callback_request->request_type="2";
$yuan_miao_merchant_biz_request_callback_request->data="{\"aasStatus\":true,\"realNameStatus\":true,\"activateStatus\":true}";
$yuan_miao_merchant_biz_request_callback_request->merchant_id="NETEASE";
$yuan_miao_merchant_biz_request_callback_request->request_id="12df46422e7df53f1e20e7547a7edc7f";
$yuan_miao_merchant_biz_request_callback_request->sign="oG8+O6GyelWEA2nbByrXsyUTz3Y+FyQi1G0jHfzGK2Lcx2WsyeK84tZtlSMmfGf/1KYgYdtTMuLkbDgM1QCWziSwYw+yOWwr+JkVToZirLoqoiIfbQ0hI7wZiwG9behr69Z/+BckLdn7SWqVwY96Qqo9QF8rKB47GEkNV+Q/AoQtolk843l/vi6iZmN2hLc5q+KcEVRsKFPvEljVCIbnX8YBzl7vBeE/HIshV2EWqYwUmxFG3G1Yv86bM1h9ZM51yyu+iysHfcNNniY9WJn0Pq7vlcb8PL369KcQZ5tcJCJGiEjrKZiP0ZWDyd+mvgf9bOHXSZLla49C/UMNmx/7UQ==";
$yuan_miao_merchant_biz_request_callback_request->sign_method="SHA256_WITH_RSA2048";
$req->setYuanMiaoMerchantBizRequestCallbackRequest(json_encode($yuan_miao_merchant_biz_request_callback_request));
$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=alibaba.cloudgame.account.merchantrequest.callback' \
-d 'partner_id=apidoc' \
-d 'sign=69F7F7D00F07388902247EFDD66E2B47' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-03+22%3A53%3A27' \
-d 'v=2.0' \
-d 'yuan_miao_merchant_biz_request_callback_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaCloudgameAccountMerchantrequestCallbackRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.yuan_miao_merchant_biz_request_callback_request="数据结构示例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,"alibaba.cloudgame.account.merchantrequest.callback");
add_param(pRequest,"yuan_miao_merchant_biz_request_callback_request","数据结构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('alibaba.cloudgame.account.merchantrequest.callback', {
'yuan_miao_merchant_biz_request_callback_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})