TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoIntegrationCraftsDtechitemAuthurlGetRequest req = new RhinoIntegrationCraftsDtechitemAuthurlGetRequest();
RhinoIntegrationCraftsDtechitemAuthurlGetRequest.GetDtechItemAuthUrlReq obj1 = new RhinoIntegrationCraftsDtechitemAuthurlGetRequest.GetDtechItemAuthUrlReq();
RhinoIntegrationCraftsDtechitemAuthurlGetRequest.BaseUserInfoReq obj2 = new RhinoIntegrationCraftsDtechitemAuthurlGetRequest.BaseUserInfoReq();
obj2.setUserSourceId("111");
obj2.setEnterpriseSourceId("kai");
obj1.setUserInfo(obj2);
obj1.setItemType("CRAFT");
obj1.setPageType("VIEW");
obj1.setProductId(10001L);
obj1.setItemVersion(1L);
req.setGetDtechItemAuthUrlReq(obj1);
RhinoIntegrationCraftsDtechitemAuthurlGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RhinoIntegrationCraftsDtechitemAuthurlGetRequest req = new RhinoIntegrationCraftsDtechitemAuthurlGetRequest();
RhinoIntegrationCraftsDtechitemAuthurlGetRequest.GetDtechItemAuthUrlReqDomain obj1 = new RhinoIntegrationCraftsDtechitemAuthurlGetRequest.GetDtechItemAuthUrlReqDomain();
RhinoIntegrationCraftsDtechitemAuthurlGetRequest.BaseUserInfoReqDomain obj2 = new RhinoIntegrationCraftsDtechitemAuthurlGetRequest.BaseUserInfoReqDomain();
obj2.UserSourceId = "111";
obj2.EnterpriseSourceId = "kai";
obj1.UserInfo= obj2;
obj1.ItemType = "CRAFT";
obj1.PageType = "VIEW";
obj1.ProductId = 10001L;
obj1.ItemVersion = 1L;
req.GetDtechItemAuthUrlReq_ = obj1;
RhinoIntegrationCraftsDtechitemAuthurlGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RhinoIntegrationCraftsDtechitemAuthurlGetRequest;
$get_dtech_item_auth_url_req = new GetDtechItemAuthUrlReq;
$user_info = new BaseUserInfoReq;
$user_info->user_source_id="111";
$user_info->enterprise_source_id="kai";
$get_dtech_item_auth_url_req->user_info = $user_info;
$get_dtech_item_auth_url_req->item_type="CRAFT";
$get_dtech_item_auth_url_req->page_type="VIEW";
$get_dtech_item_auth_url_req->product_id="10001";
$get_dtech_item_auth_url_req->item_version="1";
$req->setGetDtechItemAuthUrlReq(json_encode($get_dtech_item_auth_url_req));
$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.rhino.integration.crafts.dtechitem.authurl.get' \
-d 'partner_id=apidoc' \
-d 'sign=B759DBE738A14DF67B95293F58406EA6' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+11%3A36%3A58' \
-d 'v=2.0' \
-d 'get_dtech_item_auth_url_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RhinoIntegrationCraftsDtechitemAuthurlGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.get_dtech_item_auth_url_req="数据结构示例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.rhino.integration.crafts.dtechitem.authurl.get");
add_param(pRequest,"get_dtech_item_auth_url_req","数据结构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.rhino.integration.crafts.dtechitem.authurl.get', {
'get_dtech_item_auth_url_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})