TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkTpwdMixCreateRequest req = new TbkTpwdMixCreateRequest();
req.setExt("{}");
req.setLogo("https://uland.taobao.com/");
req.setUrl("https://uland.taobao.com/");
req.setText("长度大于5个字符");
req.setUserId("123");
req.setPassword("自定义口令");
TbkTpwdMixCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkTpwdMixCreateRequest req = new TbkTpwdMixCreateRequest();
req.Ext = "{}";
req.Logo = "https://uland.taobao.com/";
req.Url = "https://uland.taobao.com/";
req.Text = "长度大于5个字符";
req.UserId = "123";
req.Password = "自定义口令";
TbkTpwdMixCreateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkTpwdMixCreateRequest;
$req->setExt("{}");
$req->setLogo("https://uland.taobao.com/");
$req->setUrl("https://uland.taobao.com/");
$req->setText("长度大于5个字符");
$req->setUserId("123");
$req->setPassword("自定义口令");
$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.tbk.tpwd.mix.create' \
-d 'partner_id=apidoc' \
-d 'sign=F903163573177B087694EDD35FD74EF8' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-15+22%3A41%3A06' \
-d 'v=2.0' \
-d 'ext=%7B%7D' \
-d 'logo=https%3A%2F%2Fuland.taobao.com%2F' \
-d 'password=%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8F%A3%E4%BB%A4' \
-d 'text=%E9%95%BF%E5%BA%A6%E5%A4%A7%E4%BA%8E5%E4%B8%AA%E5%AD%97%E7%AC%A6' \
-d 'url=https%3A%2F%2Fuland.taobao.com%2F' \
-d 'user_id=123'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkTpwdMixCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ext="{}"
req.logo="https://uland.taobao.com/"
req.url="https://uland.taobao.com/"
req.text="长度大于5个字符"
req.user_id="123"
req.password="自定义口令"
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.tbk.tpwd.mix.create");
add_param(pRequest,"ext","{}");
add_param(pRequest,"logo","https://uland.taobao.com/");
add_param(pRequest,"url","https://uland.taobao.com/");
add_param(pRequest,"text","长度大于5个字符");
add_param(pRequest,"user_id","123");
add_param(pRequest,"password","自定义口令");
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.tbk.tpwd.mix.create', {
'ext':'{}',
'logo':'https://uland.taobao.com/',
'url':'https://uland.taobao.com/',
'text':'长度大于5个字符',
'user_id':'123',
'password':'自定义口令'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})