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

1.2.13-rc.1 • Public • Published

WeApps SDK

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

安装

npm install @govcloud/weapps-sdk

快速开始

import {configure, getSessionId, request} from '@govcloud/weapps-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))

Readme

Keywords

none

Package Sidebar

Install

npm i @tcwd/weapps-sdk

Weekly Downloads

144

Version

1.2.13-rc.1

License

ISC

Unpacked Size

154 kB

Total Files

85

Last publish

Collaborators

  • zhangzimeng
  • ceoyp
  • wedabot
  • miusuncle
  • daniel-dx
  • vancece
  • binggg
  • fengkx
  • bigyounger
  • bobbyzhao
  • yican
  • justan
  • yhyang
  • easonruan