Socket
Socket
Sign inDemoInstall

peer-wechat-official

Package Overview
Dependencies
12
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    peer-wechat-official

微信公众号api接口


Version published
Maintainers
1
Created

Readme

Source

微信公众号api接口

不提供access_token的存储,不提供jsapi_ticket的存储

需要自己存储,然后再通过方法读取

使用方法:
import Client from 'peer-wechat-official'

let client = new Client(APPID, APP_SECRET, {
    getAccessToken: async(appID: string)=>{
        return redis.get(`access_token_${appID}`)
    }
    getJsapiTicket: async(appID: string)=>{
        return redis.get(`jsapi_ticket_${appID}`)
    }
})

Keywords

FAQs

Last updated on 31 Oct 2022

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