Skip to content
Proyectos

Acerca de

SDK de WeChat para .NET, ligero y extremadamente sencillo, para la plataforma de cuentas oficiales de WeChat (cuentas de servicio y de suscripción). También es compatible con .NET Core. QQ del autor: 2586662969. Sitio web oficial:

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

1.使用对象

微信公众平台:http://mp.weixin.qq.com/wiki/home/index.html

Deepleo.Weixin.SDK是.net framework 4.5 的SDK源代码

Deepleo.Weixin.SDK.Core是dotnet core 2.0 的SDK源代码

2.核心思想

运用Dynamic(.net 4.0以及以上版本支持)在程序中传递微信所需的结构化(xml,json)对象,减少大量代码,实现轻量级。 让您可以像Python一样书写代码。

使用本SDK仍然需要仔细阅读官方文档,明确Dynamic对象字段名称。

3.疑难问题

Wiki: https://github.com/night-king/weixinSDK/wiki

1)API返回的Dynamic对象应该如何使用?

答:如果您调用API,return的是

a.由DynamicJson.Parse转换而来,您可以用.[属性名称] 访问到该属性的值;

譬如 BasicAPI.cs中GetAccessToken:

var token = DynamicJson.Parse(result.Content.ReadAsStringAsync().Result);

那么调用时:string newToken = BasicAPI.GetAccessToken(AppId, AppSecrect).access_token;

b.如果是DynamicXml转换而来的,您可以用.[属性名称].Value 访问到该属性的值;

譬如 AcceptMessageAPI.cs中Parse:

msg.Body = new DynamicXml(message);

string msgType = msg.Body.MsgType.Value;

2)遇到其他问题该如何解决?

答:如果开发者遇到开发问题或者遇到SDK的bug,请到

 a.官方QQ群:478753523

 b.官方网站:http://www.weixinsdk.net/

 c.作者QQ:2586662969

4.源代码唯一托管地址:https://github.com/night-king/weixinSDK

5.Copyright and license

Code and documentation copyright 2011-2019. Code released under the MIT license. Docs released under Creative Commons.

Explorar proyectos relacionados

Cargando…