WeiXinENTApiagentConfig 方法 (String, Int64, String, String, ComponentOnResultHandler, Boolean) |
注入应用的权限,需要先config
命名空间:
Smobiler.Plugins
程序集:
Smobiler.Plugins (在 Smobiler.Plugins.dll 中) 版本:6.0.651.17422+acac930a389332bc36ed645b22d5419d24641df7
语法public void agentConfig(
string agentid,
long timestamp,
string nonceStr,
string signature,
ComponentOnResultHandler handler = null,
bool debug = false
)
Public Sub agentConfig (
agentid As String,
timestamp As Long,
nonceStr As String,
signature As String,
Optional handler As ComponentOnResultHandler = Nothing,
Optional debug As Boolean = false
)
参数
- agentid
- 类型:SystemString
企业微信的应用id - timestamp
- 类型:SystemInt64
生成签名的时间戳 - nonceStr
- 类型:SystemString
生成签名的随机串 - signature
- 类型:SystemString
签名 - handler (Optional)
- 类型:Smobiler.Core.ControlsComponentOnResultHandler
结果回调 - debug (Optional)
- 类型:SystemBoolean
开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
参见