@aligov/upx-client

1.0.12 • Public • Published

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/

Readme

Keywords

Package Sidebar

Install

npm i @aligov/upx-client

Weekly Downloads

3

Version

1.0.12

License

BSD-2-Clause

Unpacked Size

9.33 kB

Total Files

15

Last publish

Collaborators

  • wanyi.css
  • jasoncapricorn
  • qingkaili
  • huguoxin
  • shenyu.wsy
  • liunian
  • tao1991123
  • itrip
  • xiazhiqiang
  • mo.zhou
  • guoliang.hgl
  • daip
  • baizhao