wechatpy.enterprise.client.api.shakearound 源代码

# -*- coding: 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): """ 获取摇周边的设备及用户信息 https://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']