当前位置:网站首页>Odoo project sends information to wechat official account or enterprise wechat
Odoo project sends information to wechat official account or enterprise wechat
2022-06-23 08:03:00 【Mysterious world】
odoo client.message.send_text
odoo Send information to wechat
stay odoo When developing projects on the platform, it is sometimes necessary to connect with other platforms to send information .
Here I write one odoo Examples of sending information to enterprise wechat .
You can leave a message if you have any questions !
corpID: Enterprises in wechat official account ID
agentId : First, in the WeChat official account - application - Create an Create application under , After creation, it will display agentId
secret: First, in the WeChat official account - application - Create an Create application under , After creation, it will display secret
numbers: numbers Select the personnel account string data to be sent ; Example —— ‘Quan|XiaoXin’, For more than one person, you can use “|” Split splice
@api.multi def send_activity_meg(self): numbers = [re.wx_number + '|' for re in self.registration_ids] # Here are three data for obtaining wechat official account corpID = 'wwd0fa7b2d99da5810' agentId = '1000003' secret = 'I3NLAkheWsBLZdAc-akf24-iGthbknmwgVntV4XESHw' client = WeChatClient( corpID, secret ) client.message.send_text(agentId, numbers, ' Here is the information data to be sent ')
边栏推荐
- [kubernetes] download address of the latest version of each major version of kubernetes
- 1278_ FreeRTOS_ Understand the delayed task with the prvaddcurrenttasktodelayedlist interface
- 2022山东大学软件学院软件项目管理期末考试(回忆版)
- socket编程——select模型
- 分布式ID生成
- qt 不规则图形 消除锯齿
- 11 string function
- 深度学习------卷积(conv2D)底层
- Kwai 350014
- MySQL小册子笔记 5 InnoDB 记录存储结构
猜你喜欢
随机推荐
C RichTextBox controls the maximum number of rows
Mathematical knowledge: fast power inverse element - fast power
正则表达式使用案例
Ignore overlength parameter violation
Query on the performance of multi table view in MySQL
Guava Cache 使用小结
C restart application
浅析 Open API 设计规范
js中的同步和异步
ArcMap batch delete points closer
socket编程(多进程)
1. probability theory - combination analysis
数学知识:快速幂—快速幂
PHP 文件包含 -ctf
The road to hcip MPLS
MySQL慢查询记录
openni. utils. OpenNIError: (OniStatus.ONI_STATUS_ERROR, b‘DeviceOpen using default: no devices found‘
值得反复回味的81句高人高语
深度学习------不同方法实现lenet-5模型
Socket programming (multi process)









