WeChat.Work.Agent (wechat v0.6.5)
应用
Link to this section Summary
Link to this section Types
Link to this type
agent_id()
Specs
每个应用都有唯一的 agentid - 官方文档
在管理后台->“应用与小程序”->“应用”,点进某个应用,即可看到 agentid
Link to this type
agent_name()
Specs
Link to this type
secret()
Specs
secret() :: String.t()
secret 是企业应用里面用于保障数据安全的“钥匙” - 官方文档
每一个应用都有一个独立的访问密钥,为了保证数据的安全,secret务必不能泄漏。
目前 secret
有:
- 自建应用
secret
在管理后台->“应用与小程序”->“应用”->“自建”,点进某个应用,即可看到。 - 基础应用
secret
某些基础应用(如“审批”“打卡”应用),支持通过API进行操作。在管理后台->“应用与小程序”->“应用->”“基础”,点进某个应用,点开“API”小按钮,即可看到。 - 通讯录管理
secret
在“管理工具”-“通讯录同步”里面查看(需开启“API接口同步”); - 外部联系人管理
secret
在“客户联系”栏,点开“API”小按钮,即可看到。
Specs
t() :: %WeChat.Work.Agent{ encoding_aes_key: WeChat.ServerMessage.Encryptor.encoding_aes_key(), id: agent_id(), name: agent_name(), secret: secret(), token: WeChat.token() }
应用配置
Link to this section Functions
Link to this function
contacts_agent(options \\ [])
通讯录应用