New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

qy_weixin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qy_weixin

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

qy_weixin

Shop middleware for QyWeixin

https://rubygems.org/gems/qy_weixin

Gem Version

有问题请及时提issue

https://github.com/luojie92/qy_weixin/issues

Getting started

Add this line to your application's Gemfile:

gem 'qy_weixin'

You can connect to QyWexinClient by instantiating the Redis class:

QyWexinClient = YolQyWeixin::Client.new(
  corpid : qy_weixin_config["corpid"],
  secret : qy_weixin_config["secret"],
  redis  : RedisClient
)

configuration:

corpidhttps://developer.work.weixin.qq.com/document/path/90665#corpid

secrethttps://developer.work.weixin.qq.com/document/path/90665#secret

RedisClient为redis实例,如果没有配置可传nil,建议使用redis,考虑到access_token获取次数限制;

Support methods

get access_token:

QyWexinClient.get_access_token

# => "IFYJSh2oZ4MdWCZsuV-GF_zt...vXbfmgOkkM4ZkJLCb19MuLY5pMFKj4_w"

get user_id:

QyWexinClient.get_user_id(code)

# => { "errcode": 0, "errmsg": "ok", "UserId":"USERID"}

params:

codehttps://developer.work.weixin.qq.com/document/path/91019

get user_info:

QyWexinClient.get_user_info(userid)

# => {"errcode"=>0, "errmsg"=>"ok", "userid"=>"333", "name"=>"罗xx", "department"=>[233], "position"=>"系统开发工程师", "mobile"=>"185xxxx0248", "gender"=>"1", "email"=>"", "avatar"=>"", "status"=>1, "isleader"=>0, "extattr"=>{}} 

支持

如果你觉得我的gem对你有帮助,可以动动小手右上角点个starred:star::star::star:,:star:感谢你的关注:star:

FAQs

Package last updated on 14 Apr 2022

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