点击或拖拽改变大小

WeiXinENTApiagentConfig 方法 (String, Int64, String, String, String, ComponentOnResultHandler, Boolean)

注入应用的权限,需要先config

命名空间:  Smobiler.Plugins
程序集:  Smobiler.Plugins (在 Smobiler.Plugins.dll 中) 版本:6.0.641.16928
语法
public void agentConfig(
	string agentid,
	long timestamp,
	string nonceStr,
	string signature,
	string[] jsApiList,
	ComponentOnResultHandler handler = null,
	bool debug = false
)

参数

agentid
类型:SystemString
企业微信的应用id
timestamp
类型:SystemInt64
生成签名的时间戳
nonceStr
类型:SystemString
生成签名的随机串
signature
类型:SystemString
签名
jsApiList
类型:SystemString
需要使用的JS接口列表
handler (Optional)
类型:Smobiler.Core.ControlsComponentOnResultHandler
结果回调
debug (Optional)
类型:SystemBoolean
开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
参见