@aligov/upx-client
v1.0.12
Published
upx 客户端
Downloads
10
Readme
upx-client
调用事例
const env = 'production'; //upx服务环境:daily/prepub/production
const upxClient = require('@ali/upx-client').upxClient(env);
//请求示例
upxClient.request('componentService.queryComponents', [{appId: 1}, {}])
.then((data) =>{
console.log(data);
}).catch((err) => {
console.log(err);
});
curl请求示例
curl -X POST http://pre.upx.alibaba-inc.com/api/rpc -d '{
"method": "componentService.getComponentVersion",
"params": [{
"name":"content-item",
"version":"0.0.2",
"app":"abs"}]
}' -H 'content-type:application/json'
接口说明
- 接口文档 http://groups.alidemo.cn/tms/upx-doc/