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

wx_miniprogram

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wx_miniprogram

  • 0.1.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

WxMiniprogram

Ruby微信小程序服务端API

DONE:接口调用凭据、openApi管理、小程序登陆、用户信息、小程序码与小程序链接

TODO: 小程序客服、消息相关、小程序安全、数据分析、硬件设备、直播、运维中心、插件管理...等

Installation

gem install wx_miniprogram

Usage

所有接口方法以!结尾的方法调用失败抛出ApiError异常。正常方法成功返回Response Hash实例,失败返回false。

client = WxMiniprogram::Client.new("appid", "secret")
# 获取Token
client.get_access_token!
# 获取稳定版Token
client.get_stable_access_token!
# 刷新Token
client.refresh_access_token!
# 获取插件用户openpid
client.get_plugin_open_pid("openid")
# 检查加密信息
client.check_encrypted_data("encoded_str")

...

Test

TODO

设置环境变量 WX_APPID 和 WX_SECRET

rspec

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ranjiayu/wx_miniprogram.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 04 Jul 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