MCPcopy
hub / github.com/wechatpy/wechatpy / apply_device_id

Method apply_device_id

wechatpy/client/api/shakearound.py:25–47  ·  view source on GitHub ↗

申请设备ID 详情请参考 http://mp.weixin.qq.com/wiki/15/b9e012f917e3484b7ed02771156411f3.html :param quantity: 申请的设备ID的数量,单次新增设备超过500个,需走人工审核流程 :param reason: 申请理由,不超过100个字 :param poi_id: 可选,设备关联的门店ID :param comment: 可选,备注,不超过15个汉字或30个英文字母 :retu

(self, quantity, reason, poi_id=None, comment=None)

Source from the content-addressed store, hash-verified

23 return int(date)
24
25 def apply_device_id(self, quantity, reason, poi_id=None, comment=None):
26 """
27 申请设备ID
28 详情请参考
29 http://mp.weixin.qq.com/wiki/15/b9e012f917e3484b7ed02771156411f3.html
30
31 :param quantity: 申请的设备ID的数量,单次新增设备超过500个,需走人工审核流程
32 :param reason: 申请理由,不超过100个字
33 :param poi_id: 可选,设备关联的门店ID
34 :param comment: 可选,备注,不超过15个汉字或30个英文字母
35 :return: 申请的设备信息
36 """
37 data = optionaldict()
38 data['quantity'] = quantity
39 data['apply_reason'] = reason
40 data['poi_id'] = poi_id
41 data['comment'] = comment
42 res = self._post(
43 'shakearound/device/applyid',
44 data=data,
45 result_processor=lambda x: x['data']
46 )
47 return res
48
49 def update_device(self, device_id=None, uuid=None, major=None,
50 minor=None, comment=None):

Callers 1

Calls 1

_postMethod · 0.45

Tested by 1