Socket
Socket
Sign inDemoInstall

@tcwd/weapps-sdk

Package Overview
Dependencies
22
Maintainers
16
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tcwd/weapps-sdk

SDK for weapps development, e.g. session management.


Version published
Weekly downloads
146
decreased by-17.51%
Maintainers
16
Created
Weekly downloads
 

Readme

Source

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))

FAQs

Last updated on 15 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc