C# Class Senparc.Weixin.Open.CommonAPIs.CommonApi

通用接口 通用接口用于和微信服务器通讯,一般不涉及自有网站服务器的通讯
显示文件 Open project: Chinaccn/surfboard Class Usage Examples

Public Methods

Method Description
GetComponentAccessToken ( string componentAppId, string componentAppSecret, string componentVerifyTicket, int timeOut = Config.TIME_OUT ) : ComponentAccessTokenResult

获取第三方平台access_token

GetJsApiTicket ( string authorizerAccessToken, string type = "jsapi" ) : JsApiTicketResult

文档:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1421823488 &token=&lang=zh_CN 获取调用微信JS接口的临时票据 OPEN

GetPreAuthCode ( string componentAppId, string componentAccessToken, int timeOut = Config.TIME_OUT ) : PreAuthCodeResult

获取预授权码

Method Details

GetComponentAccessToken() public static method

获取第三方平台access_token
public static GetComponentAccessToken ( string componentAppId, string componentAppSecret, string componentVerifyTicket, int timeOut = Config.TIME_OUT ) : ComponentAccessTokenResult
componentAppId string 第三方平台appid
componentAppSecret string 第三方平台appsecret
componentVerifyTicket string 微信后台推送的ticket,此ticket会定时推送,具体请见本页末尾的推送说明
timeOut int
return Senparc.Weixin.Open.Entities.ComponentAccessTokenResult

GetJsApiTicket() public static method

文档:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1421823488 &token=&lang=zh_CN 获取调用微信JS接口的临时票据 OPEN
public static GetJsApiTicket ( string authorizerAccessToken, string type = "jsapi" ) : JsApiTicketResult
authorizerAccessToken string authorizer_access_token
type string
return Senparc.Weixin.Open.Entities.JsApiTicketResult

GetPreAuthCode() public static method

获取预授权码
public static GetPreAuthCode ( string componentAppId, string componentAccessToken, int timeOut = Config.TIME_OUT ) : PreAuthCodeResult
componentAppId string 第三方平台方appid
componentAccessToken string
timeOut int
return Senparc.Weixin.Open.Entities.PreAuthCodeResult