TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScPrivateTpwdCreateRequest req = new TbkScPrivateTpwdCreateRequest();
req.setUrl("https://s.click.taobao.com/YI3Uopu");
req.setText("noMeaningValue");
req.setLogo("noMeaningValue");
req.setExt("noMeaningValue");
req.setUserId("noMeaningValue");
TbkScPrivateTpwdCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScPrivateTpwdCreateRequest req = new TbkScPrivateTpwdCreateRequest();
req.Url = "https://s.click.taobao.com/YI3Uopu";
req.Text = "noMeaningValue";
req.Logo = "noMeaningValue";
req.Ext = "noMeaningValue";
req.UserId = "noMeaningValue";
TbkScPrivateTpwdCreateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScPrivateTpwdCreateRequest;
$req->setUrl("https://s.click.taobao.com/YI3Uopu");
$req->setText("noMeaningValue");
$req->setLogo("noMeaningValue");
$req->setExt("noMeaningValue");
$req->setUserId("noMeaningValue");
$resp = $c->execute($req, $sessionKey);
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.tbk.sc.private.tpwd.create' \
-d 'partner_id=apidoc' \
-d 'session=6cb8f806-35e8-4ed0-a72b-90ff4ea4aab1' \
-d 'sign=15F33D4059D5E9B03470A5881CA33B1A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+00%3A59%3A09' \
-d 'v=2.0' \
-d 'ext=noMeaningValue' \
-d 'logo=noMeaningValue' \
-d 'text=noMeaningValue' \
-d 'url=https%3A%2F%2Fs.click.taobao.com%2FYI3Uopu' \
-d 'user_id=noMeaningValue'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScPrivateTpwdCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.url="https://s.click.taobao.com/YI3Uopu"
req.text="noMeaningValue"
req.logo="noMeaningValue"
req.ext="noMeaningValue"
req.user_id="noMeaningValue"
try:
resp= req.getResponse(sessionkey)
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.tbk.sc.private.tpwd.create");
add_param(pRequest,"url","https://s.click.taobao.com/YI3Uopu");
add_param(pRequest,"text","noMeaningValue");
add_param(pRequest,"logo","noMeaningValue");
add_param(pRequest,"ext","noMeaningValue");
add_param(pRequest,"user_id","noMeaningValue");
pResponse = top_execute(pClient,pRequest,sessionKey);
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.tbk.sc.private.tpwd.create', {
'url':'https://s.click.taobao.com/YI3Uopu',
'text':'noMeaningValue',
'logo':'noMeaningValue',
'ext':'noMeaningValue',
'user_id':'noMeaningValue'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})