TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoGatewayBpmsRequest req = new RhinoGatewayBpmsRequest();
req.setProcessCode("abc");
req.setTitle("采购订单审批");
req.setOrginatorId("012345");
req.setInitDataString("{“key1”: \"value1\", \"key2\": \"value2\"}");
req.setAuthKey("a123");
RhinoGatewayBpmsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RhinoGatewayBpmsRequest req = new RhinoGatewayBpmsRequest();
req.ProcessCode = "abc";
req.Title = "采购订单审批";
req.OrginatorId = "012345";
req.InitData = "{“key1”: \"value1\", \"key2\": \"value2\"}";
req.AuthKey = "a123";
RhinoGatewayBpmsResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RhinoGatewayBpmsRequest;
$req->setProcessCode("abc");
$req->setTitle("采购订单审批");
$req->setOrginatorId("012345");
$req->setInitData("{“key1”: \"value1\", \"key2\": \"value2\"}");
$req->setAuthKey("a123");
$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.gateway.bpms' \
-d 'partner_id=apidoc' \
-d 'sign=DAC27FDA7A15B0C1FC1DE2FAC951A407' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+15%3A33%3A59' \
-d 'v=2.0' \
-d 'auth_key=a123' \
-d 'init_data=%7B%E2%80%9Ckey1%E2%80%9D%3A+%5C%22value1%5C%22%2C+%5C%22key2%5C%22%3A+%5C%22value2%5C%22%7D' \
-d 'orginator_id=012345' \
-d 'process_code=abc' \
-d 'title=%E9%87%87%E8%B4%AD%E8%AE%A2%E5%8D%95%E5%AE%A1%E6%89%B9'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RhinoGatewayBpmsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.process_code="abc"
req.title="采购订单审批"
req.orginator_id="012345"
req.init_data="{“key1”: \"value1\", \"key2\": \"value2\"}"
req.auth_key="a123"
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.gateway.bpms");
add_param(pRequest,"process_code","abc");
add_param(pRequest,"title","采购订单审批");
add_param(pRequest,"orginator_id","012345");
add_param(pRequest,"init_data","{“key1”: \"value1\", \"key2\": \"value2\"}");
add_param(pRequest,"auth_key","a123");
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.gateway.bpms', {
'process_code':'abc',
'title':'采购订单审批',
'orginator_id':'012345',
'init_data':'{“key1”: \"value1\", \"key2\": \"value2\"}',
'auth_key':'a123'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})