1.0.12 • Published 3 years ago

@aligov/upx-client v1.0.12

Weekly downloads
-
License
BSD-2-Clause
Repository
-
Last release
3 years ago

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' 

接口说明

  1. 接口文档 http://groups.alidemo.cn/tms/upx-doc/