All Projects → deerchao → weixin.next

deerchao / weixin.next

Licence: MIT license
.Net 下的微信公众号/微信支付库

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to weixin.next

mpvue canvas drawer
[mpvue版本]微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片
Stars: ✭ 43 (+53.57%)
Mutual labels:  weixin
fim
flutter写的IM移动客户端
Stars: ✭ 55 (+96.43%)
Mutual labels:  weixin
wwas
wifidog auth server for supporting wfc payment and weixin lian
Stars: ✭ 69 (+146.43%)
Mutual labels:  weixin
wxpusher-sdk-python
微信消息实时推送服务[WxPusher]的Python版本sdk,可以通过API实时给个人微信推送消息。wechat pusher.
Stars: ✭ 156 (+457.14%)
Mutual labels:  weixin
wx-ding-aes
Node.js 微信开放平台、企业微信、钉钉第三方回调接口 AES 解密库
Stars: ✭ 45 (+60.71%)
Mutual labels:  weixin
ui
We reinvent the UI for taro3+
Stars: ✭ 48 (+71.43%)
Mutual labels:  weixin
wx-domain-test
微信域名防封系统 实时检测 自动切换域名 消息提醒
Stars: ✭ 71 (+153.57%)
Mutual labels:  weixin
api-server
OpenSCRM是一套基于Go和React的高质量企业微信私域流量管理系统 。遵守Apache2.0协议,全网唯一免费商用。企业微信、私域流量、SCRM。
Stars: ✭ 981 (+3403.57%)
Mutual labels:  weixin
wxMD5
📄基于 blueimp/JavaScript-MD5 的支持小程序的MD5加密库
Stars: ✭ 44 (+57.14%)
Mutual labels:  weixin
weixin-service
java微信开发版本三:gradle、springboot、redis、quartz、lombok
Stars: ✭ 14 (-50%)
Mutual labels:  weixin
robot
微信机器人
Stars: ✭ 24 (-14.29%)
Mutual labels:  weixin
vux-weixin
基于vue,vux,运行在微信上,增加了 http拦截器, auth权限 , jwt认证 , storage ,目录结构灵感来源于ngx-admin
Stars: ✭ 14 (-50%)
Mutual labels:  weixin
wwas-admin
wificoin wifidog auth server admin ui
Stars: ✭ 18 (-35.71%)
Mutual labels:  weixin
jeewx-boot
JAVA版免费开源的微信管家平台。支持微信公众号、小程序、第三方平台等。平台已经实现了公众号基础管理、群发、系统权限、抽奖活动、小程序官网等功能,便于二次开发,可以快速搭建微信应用!
Stars: ✭ 992 (+3442.86%)
Mutual labels:  weixin
notify-server
🍰微信消息通知
Stars: ✭ 190 (+578.57%)
Mutual labels:  weixin
go-wechat
💥weixin、wechat、微信公众平台、企业微信 golang/go sdk
Stars: ✭ 18 (-35.71%)
Mutual labels:  weixin
openapplus
专为小程序共享而生的小程序容器
Stars: ✭ 51 (+82.14%)
Mutual labels:  weixin
taro-icons
基于 Taro 的小程序图标库
Stars: ✭ 53 (+89.29%)
Mutual labels:  weixin
server
即时通讯(IM)系统
Stars: ✭ 6,896 (+24528.57%)
Mutual labels:  weixin
anger-wechat
👿Angry wechat api 微信支付、小程序、各种接口的封装。
Stars: ✭ 17 (-39.29%)
Mutual labels:  weixin

weixin.next

.Net 下的微信公众号接口库, 用于调用微信公众平台提供的各种数据接口, 处理微信服务器发来的各种消息.

仅支持 .Net 4.5+ (.Net Core 应该能很方便地移植). 已完成菜单, 用户, 消息, 媒体素材, 网页验证等接口.

目标

简单易用

  • 接口名称和消息类型等遵循 .Net 的命名规范.
  • 异步方法名称后不加 Async 后缀(因为大部分方法都是异步的).
  • 提供 access_token, jsapi_ticket 等的自动过期管理机制
  • 提供 Asp.net Mvc 示例项目.

简洁高效

  • 所有网络 I/O 使用异步机制
  • access_token, jsapi_ticket 等能方便地支持多台服务器间的协同工作.
  • 可自定义 JSON 库(自带 Json.Net 实现)
  • 可自定义消息去重缓存策略(自带内存缓存实现)

持续更新

  • 附带官方文档下载功能, 可随时更新并 diff

使用说明

具体可参见 Sample 项目.

接口调用

首先使用 JsonParser, AccessTokenManager, HttpClient 构造好 ApiConfig 对象, 将其设置为 ApiHelper 默认的 ApiConfig, 然后就可以直接调用不同的接口方法了. 在调用具体接口时, 如因需要支持多个公众号等原因, 也可以提供一个不同于默认的 ApiConfig 对象.

所有接口调用都返回 TaskTask<T> 结果, 应用层应对其进行 await. 接口调用有可能抛出 ApiException, 对应微信返回的 {"errcode": xxx, "errmsg": "yyy"} 的情况.

消息处理

首先从 MessageCenter/MessageHandler 派生自己的类, 按自己的需求重写部分方法, 然后实例化一个 MessageCenter 对象, 调用其 ProcessMessage 方法即可.

MessageCenter 负责加密/解密, 序列化/反序列化, 消息去重等功能;MessageHandler 负责处理单条消息.

致谢

本项目部分设计受 JefferySu 的 WeiXinMPSDK 影响.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].