TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMevOpenPushfaceelementRequest req = new AlibabaDamaiMevOpenPushfaceelementRequest();
List<AlibabaDamaiMevOpenPushfaceelementRequest.ThirdFaceElementPushOpenParam> list2 = new ArrayList<AlibabaDamaiMevOpenPushfaceelementRequest.ThirdFaceElementPushOpenParam>();
AlibabaDamaiMevOpenPushfaceelementRequest.ThirdFaceElementPushOpenParam obj3 = new AlibabaDamaiMevOpenPushfaceelementRequest.ThirdFaceElementPushOpenParam();
list2.add(obj3);
obj3.setDataType(0L);
obj3.setDateFormat("foo");
obj3.setElementType(0L);
obj3.setExtName("foo");
obj3.setExtType("foo");
obj3.setFaceId(0L);
obj3.setFont("foo");
obj3.setFontOrientation(0L);
obj3.setFontShape(0L);
obj3.setFontSize(0L);
obj3.setHeight(0L);
obj3.setHorizontalCoordinate(0L);
obj3.setPushTime(StringUtils.parseDateTime("2017-01-01 00:00:00"));
obj3.setStaticPicUrl("foo");
obj3.setStaticTextContent("foo");
obj3.setSupplierSecret("foo");
obj3.setSystemId(0L);
obj3.setVerticalCoordinate(0L);
obj3.setWidth(0L);
req.setPushFaceElementParamList(list2);
AlibabaDamaiMevOpenPushfaceelementResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaDamaiMevOpenPushfaceelementRequest req = new AlibabaDamaiMevOpenPushfaceelementRequest();
List<AlibabaDamaiMevOpenPushfaceelementRequest.ThirdFaceElementPushOpenParamDomain> list2 = new List<AlibabaDamaiMevOpenPushfaceelementRequest.ThirdFaceElementPushOpenParamDomain>();
AlibabaDamaiMevOpenPushfaceelementRequest.ThirdFaceElementPushOpenParamDomain obj3 = new AlibabaDamaiMevOpenPushfaceelementRequest.ThirdFaceElementPushOpenParamDomain();
list2.Add(obj3);
obj3.DataType = 0L;
obj3.DateFormat = "foo";
obj3.ElementType = 0L;
obj3.ExtName = "foo";
obj3.ExtType = "foo";
obj3.FaceId = 0L;
obj3.Font = "foo";
obj3.FontOrientation = 0L;
obj3.FontShape = 0L;
obj3.FontSize = 0L;
obj3.Height = 0L;
obj3.HorizontalCoordinate = 0L;
obj3.PushTime = DateTime.Parse(2017-01-01 00:00:00");
obj3.StaticPicUrl = "foo";
obj3.StaticTextContent = "foo";
obj3.SupplierSecret = "foo";
obj3.SystemId = 0L;
obj3.VerticalCoordinate = 0L;
obj3.Width = 0L;
req.PushFaceElementParamList_ = list2;
AlibabaDamaiMevOpenPushfaceelementResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaDamaiMevOpenPushfaceelementRequest;
$push_face_element_param_list = new ThirdFaceElementPushOpenParam;
$push_face_element_param_list->data_type="0";
$push_face_element_param_list->date_format="foo";
$push_face_element_param_list->element_type="0";
$push_face_element_param_list->ext_name="foo";
$push_face_element_param_list->ext_type="foo";
$push_face_element_param_list->face_id="0";
$push_face_element_param_list->font="foo";
$push_face_element_param_list->font_orientation="0";
$push_face_element_param_list->font_shape="0";
$push_face_element_param_list->font_size="0";
$push_face_element_param_list->height="0";
$push_face_element_param_list->horizontal_coordinate="0";
$push_face_element_param_list->push_time="2017-01-01 00:00:00";
$push_face_element_param_list->static_pic_url="foo";
$push_face_element_param_list->static_text_content="foo";
$push_face_element_param_list->supplier_secret="foo";
$push_face_element_param_list->system_id="0";
$push_face_element_param_list->vertical_coordinate="0";
$push_face_element_param_list->width="0";
$req->setPushFaceElementParamList(json_encode($push_face_element_param_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=alibaba.damai.mev.open.pushfaceelement' \
-d 'partner_id=apidoc' \
-d 'sign=06F3990815F0567ADCA5EFE96B2E43E7' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-01+20%3A44%3A55' \
-d 'v=2.0' \
-d 'push_face_element_param_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaDamaiMevOpenPushfaceelementRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.push_face_element_param_list=""
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.damai.mev.open.pushfaceelement");
add_param(pRequest,"push_face_element_param_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('alibaba.damai.mev.open.pushfaceelement', {
'push_face_element_param_list':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})