TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest req = new YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest();
YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppListDTO obj1 = new YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppListDTO();
obj1.setCount(1L);
List<YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppStatusDTO> list3 = new ArrayList<YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppStatusDTO>();
YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppStatusDTO obj4 = new YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppStatusDTO();
list3.add(obj4);
obj4.setMiniAppId("2021002191649200");
obj4.setOpStatus(1L);
obj4.setVersionName("1.0.0");
obj4.setDeviceName("aa");
obj1.setList(list3);
req.setMiniAppList(obj1);
YunosEbanmaMiniappOemopsMiniappStatuschangeOutResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest req = new YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest();
YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppListDTODomain obj1 = new YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppListDTODomain();
obj1.Count = 1L;
List<YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppStatusDTODomain> list3 = new List<YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppStatusDTODomain>();
YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppStatusDTODomain obj4 = new YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest.TytMiniAppStatusDTODomain();
list3.Add(obj4);
obj4.MiniAppId = "2021002191649200";
obj4.OpStatus = 1L;
obj4.VersionName = "1.0.0";
obj4.DeviceName = "aa";
obj1.List= list3;
req.MiniAppList_ = obj1;
YunosEbanmaMiniappOemopsMiniappStatuschangeOutResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest;
$mini_app_list = new TytMiniAppListDTO;
$mini_app_list->count="1";
$list = new TytMiniAppStatusDTO;
$list->mini_app_id="2021002191649200";
$list->op_status="1";
$list->version_name="1.0.0";
$list->device_name="aa";
$mini_app_list->list = $list;
$req->setMiniAppList(json_encode($mini_app_list));
$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=yunos.ebanma.miniapp.oemops.miniapp.statuschange.out' \
-d 'partner_id=apidoc' \
-d 'sign=481DCA0F87E3FE51F8920C320B4DDB56' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+09%3A01%3A24' \
-d 'v=2.0' \
-d 'mini_app_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.YunosEbanmaMiniappOemopsMiniappStatuschangeOutRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.mini_app_list="数据结构示例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,"yunos.ebanma.miniapp.oemops.miniapp.statuschange.out");
add_param(pRequest,"mini_app_list","数据结构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('yunos.ebanma.miniapp.oemops.miniapp.statuschange.out', {
'mini_app_list':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})