C# Класс Senparc.Weixin.Open.CommonAPIs.CommonApi

通用接口 通用接口用于和微信服务器通讯,一般不涉及自有网站服务器的通讯
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

获取预授权码

Описание методов

GetComponentAccessToken() публичный статический Метод

获取第三方平台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
Результат Senparc.Weixin.Open.Entities.ComponentAccessTokenResult

GetJsApiTicket() публичный статический Метод

文档: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
Результат Senparc.Weixin.Open.Entities.JsApiTicketResult

GetPreAuthCode() публичный статический Метод

获取预授权码
public static GetPreAuthCode ( string componentAppId, string componentAccessToken, int timeOut = Config.TIME_OUT ) : PreAuthCodeResult
componentAppId string 第三方平台方appid
componentAccessToken string
timeOut int
Результат Senparc.Weixin.Open.Entities.PreAuthCodeResult