TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTcLogisticsDmsOrderPicPhotographedRequest req = new AlibabaTcLogisticsDmsOrderPicPhotographedRequest();
req.setOrderCode("DO7035094414");
req.setEvidenceScene("DELIVERED");
req.setPicUrl("http://xxx.png");
AlibabaTcLogisticsDmsOrderPicPhotographedRequest.TokenPic obj1 = new AlibabaTcLogisticsDmsOrderPicPhotographedRequest.TokenPic();
obj1.setTokenCode("202201203561662356");
obj1.setPicUrl("http://xxx.png");
req.setTokens(obj1);
AlibabaTcLogisticsDmsOrderPicPhotographedResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaTcLogisticsDmsOrderPicPhotographedRequest req = new AlibabaTcLogisticsDmsOrderPicPhotographedRequest();
req.OrderCode = "DO7035094414";
req.EvidenceScene = "DELIVERED";
req.PicUrl = "http://xxx.png";
AlibabaTcLogisticsDmsOrderPicPhotographedRequest.TokenPicDomain obj1 = new AlibabaTcLogisticsDmsOrderPicPhotographedRequest.TokenPicDomain();
obj1.TokenCode = "202201203561662356";
obj1.PicUrl = "http://xxx.png";
req.Tokens_ = obj1;
AlibabaTcLogisticsDmsOrderPicPhotographedResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaTcLogisticsDmsOrderPicPhotographedRequest;
$req->setOrderCode("DO7035094414");
$req->setEvidenceScene("DELIVERED");
$req->setPicUrl("http://xxx.png");
$tokens = new TokenPic;
$tokens->token_code="202201203561662356";
$tokens->pic_url="http://xxx.png";
$req->setTokens(json_encode($tokens));
$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.tc.logistics.dms.order.pic.photographed' \
-d 'partner_id=apidoc' \
-d 'sign=383B11A59BFF4A63F5C3FACB7BD68004' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-01+05%3A58%3A45' \
-d 'v=2.0' \
-d 'evidence_scene=DELIVERED' \
-d 'order_code=DO7035094414' \
-d 'pic_url=http%3A%2F%2Fxxx.png' \
-d 'tokens=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaTcLogisticsDmsOrderPicPhotographedRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.order_code="DO7035094414"
req.evidence_scene="DELIVERED"
req.pic_url="http://xxx.png"
req.tokens="[]"
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.tc.logistics.dms.order.pic.photographed");
add_param(pRequest,"order_code","DO7035094414");
add_param(pRequest,"evidence_scene","DELIVERED");
add_param(pRequest,"pic_url","http://xxx.png");
add_param(pRequest,"tokens","数据结构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.tc.logistics.dms.order.pic.photographed', {
'order_code':'DO7035094414',
'evidence_scene':'DELIVERED',
'pic_url':'http://xxx.png',
'tokens':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})