Method | Description | |
---|---|---|
CreateMenu ( string accessTokenOrAppId, |
创建菜单
|
|
CreateMenu ( string accessTokenOrAppId, object buttonData, int timeOut = Config.TIME_OUT ) : WxJsonResult |
创建菜单
|
|
CreateMenuConditional ( string accessTokenOrAppId, |
创建个新华菜单
|
|
DeleteMenu ( string accessTokenOrAppId ) : WxJsonResult |
删除菜单
|
|
DeleteMenuConditional ( string accessTokenOrAppId, string menuId ) : WxJsonResult |
删除菜单
|
|
GetCallBackIp ( string accessTokenOrAppId ) : |
获取微信服务器的ip段
|
|
GetCallBackIpAsync ( string accessTokenOrAppId ) : Task |
【异步方法】获取微信服务器的ip段
|
|
GetMenu ( string accessTokenOrAppId ) : |
获取当前菜单,如果菜单不存在,将返回null
|
|
GetMenuFromJsonResult ( GetMenuResultFull resultFull, |
根据微信返回的Json数据得到可用的GetMenuResult结果
|
|
GetTicket ( string appId, string secret, string type = "jsapi" ) : |
获取调用微信JS接口的临时票据
|
|
GetTicketAsync ( string appId, string secret, string type = "jsapi" ) : Task |
【异步方法】获取调用微信JS接口的临时票据
|
|
GetTicketByAccessToken ( string accessTokenOrAppId, string type = "jsapi" ) : |
获取调用微信JS接口的临时票据
|
|
GetTicketByAccessTokenAsync ( string accessTokenOrAppId, string type = "jsapi" ) : Task |
【异步方法】获取调用微信JS接口的临时票据
|
|
GetToken ( string appid, string secret, string grant_type = "client_credential" ) : |
获取凭证接口
|
|
GetTokenAsync ( string appid, string secret, string grant_type = "client_credential" ) : Task |
【异步方法】获取凭证接口
|
|
GetUserInfo ( string accessTokenOrAppId, string openId ) : |
用户信息接口
|
|
GetUserInfoAsync ( string accessTokenOrAppId, string openId ) : Task |
【异步方法】用户信息接口
|
|
TryMatch ( string accessTokenOrAppId, string userId ) : MenuTryMatchResult |
测试个性化菜单匹配结果
|
Method | Description | |
---|---|---|
GetButtonGroup ( List |
从rootButtonList获取buttonGroup
|
|
GetMenuFromJson ( string jsonString ) : |
||
GetSingleButtonFromJsonObject ( object>.Dictionary |
public static CreateMenu ( string accessTokenOrAppId, |
||
accessTokenOrAppId | string | AccessToken或AppId。当为AppId时,如果AccessToken错误将自动获取一次。当为null时,获取当前注册的第一个AppId。 |
buttonData | 菜单内容 | |
timeOut | int | |
return | WxJsonResult |
public static CreateMenu ( string accessTokenOrAppId, object buttonData, int timeOut = Config.TIME_OUT ) : WxJsonResult | ||
accessTokenOrAppId | string | AccessToken或AppId。当为AppId时,如果AccessToken错误将自动获取一次。当为null时,获取当前注册的第一个AppId。 |
buttonData | object | 菜单内容 |
timeOut | int | |
return | WxJsonResult |
public static CreateMenuConditional ( string accessTokenOrAppId, |
||
accessTokenOrAppId | string | AccessToken或AppId。当为AppId时,如果AccessToken错误将自动获取一次。当为null时,获取当前注册的第一个AppId。 |
buttonData | 菜单内容 | |
timeOut | int | |
return |
public static DeleteMenu ( string accessTokenOrAppId ) : WxJsonResult | ||
accessTokenOrAppId | string | |
return | WxJsonResult |
public static DeleteMenuConditional ( string accessTokenOrAppId, string menuId ) : WxJsonResult | ||
accessTokenOrAppId | string | |
menuId | string | 菜单Id |
return | WxJsonResult |
public static GetCallBackIp ( string accessTokenOrAppId ) : |
||
accessTokenOrAppId | string | |
return |
public static GetCallBackIpAsync ( string accessTokenOrAppId ) : Task |
||
accessTokenOrAppId | string | |
return | Task |
public static GetMenu ( string accessTokenOrAppId ) : |
||
accessTokenOrAppId | string | |
return |
public static GetMenuFromJsonResult ( GetMenuResultFull resultFull, |
||
resultFull | GetMenuResultFull | |
buttonGroupBase | ButtonGroupBase的衍生类型,可以为ButtonGroup或ConditionalButtonGroup。返回的GetMenuResult中的menu属性即为此示例。 | |
return |
public static GetTicket ( string appId, string secret, string type = "jsapi" ) : |
||
appId | string | |
secret | string | |
type | string | 默认为jsapi,当作为卡券接口使用时,应当为wx_card |
return |
public static GetTicketAsync ( string appId, string secret, string type = "jsapi" ) : Task |
||
appId | string | |
secret | string | |
type | string | 默认为jsapi,当作为卡券接口使用时,应当为wx_card |
return | Task |
public static GetTicketByAccessToken ( string accessTokenOrAppId, string type = "jsapi" ) : |
||
accessTokenOrAppId | string | |
type | string | 默认为jsapi,当作为卡券接口使用时,应当为wx_card |
return |
public static GetTicketByAccessTokenAsync ( string accessTokenOrAppId, string type = "jsapi" ) : Task |
||
accessTokenOrAppId | string | |
type | string | 默认为jsapi,当作为卡券接口使用时,应当为wx_card |
return | Task |
public static GetToken ( string appid, string secret, string grant_type = "client_credential" ) : |
||
appid | string | 第三方用户唯一凭证 |
secret | string | 第三方用户唯一凭证密钥,既appsecret |
grant_type | string | 获取access_token填写client_credential |
return |
public static GetTokenAsync ( string appid, string secret, string grant_type = "client_credential" ) : Task |
||
appid | string | 第三方用户唯一凭证 |
secret | string | 第三方用户唯一凭证密钥,既appsecret |
grant_type | string | 获取access_token填写client_credential |
return | Task |
public static GetUserInfo ( string accessTokenOrAppId, string openId ) : |
||
accessTokenOrAppId | string | |
openId | string | |
return |
public static GetUserInfoAsync ( string accessTokenOrAppId, string openId ) : Task |
||
accessTokenOrAppId | string | |
openId | string | |
return | Task |
public static TryMatch ( string accessTokenOrAppId, string userId ) : MenuTryMatchResult | ||
accessTokenOrAppId | string | |
userId | string | 可以是粉丝的OpenID,也可以是粉丝的微信号。 |
return | MenuTryMatchResult |