优化工单模块,增加企微模块

This commit is contained in:
mgw
2024-07-10 15:58:47 +08:00
parent e8512b23e4
commit 6b140fe6dd
134 changed files with 12830 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import, unicode_literals
from wechatpy.client.api.base import BaseWeChatAPI
class WeChatShakeAround(BaseWeChatAPI):
def get_shake_info(self, ticket):
"""
获取摇周边的设备及用户信息
详情请参考
http://qydev.weixin.qq.com/wiki/index.php?title=获取设备及用户信息
:param ticket: 摇周边业务的ticket可在摇到的 URL 中得到ticket 生效时间为30分钟
:return: 设备及用户信息
"""
res = self._post(
'shakearound/getshakeinfo',
data={
'ticket': ticket
}
)
return res['data']