@wecity/weda-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.5.5 • Public • Published

WeApps SDK

WeApps内置SDK,在lowcode中可直接调用。

安装

npm install @wecity/weda-sdk

快速开始

import {configure, getSessionId, request} from '@wecity/weda-sdk'
    
configure({
  service: {
    domain: 'https://xxx.com', // 生产环境
    appId: 'xxxx',
  }
})

// 登录
getSessionId().then(session => console.log('session id', session))

// 发送请求
request({
      url: `/wll/account/getphone`,
      method: 'POST',
      data: e.detail,
    }).then(res=> console.log('decrypt phone number', res))

Dependencies (9)

Dev Dependencies (14)

Package Sidebar

Install

npm i @wecity/weda-sdk

Weekly Downloads

5

Version

1.5.5

License

ISC

Unpacked Size

215 kB

Total Files

96

Last publish

Collaborators

  • loopzhou
  • zystylish
  • brian_zhang
  • legendlu
  • fenfeizeng
  • colinczhu
  • easonruan
  • yikazhu
  • daniel-dx
  • domy
  • delenzhang
  • vickiliang
  • derrickliu
  • xiaoyaojones
  • smileswlin
  • jillysong
  • allennzhang
  • sharryliao
  • pechelhuang
  • phspan