Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tcwd/weapps-sdk

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tcwd/weapps-sdk

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

  • 1.2.13-rc.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
65
increased by16.07%
Maintainers
0
Weekly downloads
 
Created
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

Package last updated on 24 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc