C# Class Senparc.Weixin.WxOpen.AdvancedAPIs.WxApp.WxAppApi

WxApp接口
Exibir arquivo Open project: JeffreySu/WeiXinMPSDK Class Usage Examples

Public Methods

Method Description
CreateWxaQrCode ( string accessTokenOrAppId, Stream stream, string path, int width = 430, int timeOut = Config.TIME_OUT ) : WxJsonResult

获取小程序页面二维码

CreateWxaQrCodeAsync ( string accessTokenOrAppId, Stream stream, string path, int width = 430, int timeOut = Config.TIME_OUT ) : Task

【异步方法】获取小程序页面二维码

Method Details

CreateWxaQrCode() public static method

获取小程序页面二维码
public static CreateWxaQrCode ( string accessTokenOrAppId, Stream stream, string path, int width = 430, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
stream Stream 储存二维码的流
path string 不能为空,最大长度 128 字节(如:pages/index?query=1。注:pages/index 需要在 app.json 的 pages 中定义)
width int 二维码的宽度
timeOut int 请求超时时间
return Senparc.Weixin.Entities.WxJsonResult

CreateWxaQrCodeAsync() public static method

【异步方法】获取小程序页面二维码
public static CreateWxaQrCodeAsync ( string accessTokenOrAppId, Stream stream, string path, int width = 430, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
stream Stream 储存二维码的流
path string 不能为空,最大长度 128 字节(如:pages/index?query=1,注:pages/index 需要在 app.json 的 pages 中定义)
width int 二维码的宽度
timeOut int 请求超时时间
return Task