-
-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
218 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"recordlist": [ | ||
{ | ||
"worker": " test1", | ||
"openid": "oDF3iY9WMaswOPWjCIp_f3Bnpljk", | ||
"opercode": 2002, | ||
"time": 1400563710, | ||
"text": " 您好,客服test1为您服务。" | ||
}, | ||
{ | ||
"worker": " test1", | ||
"openid": "oDF3iY9WMaswOPWjCIp_f3Bnpljk", | ||
"opercode": 2003, | ||
"time": 1400563731, | ||
"text": " 你好,有什么事情? " | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import absolute_import, unicode_literals | ||
from wechatpy.client.api.base import BaseWeChatAPI | ||
|
||
|
||
class WeChatBatch(BaseWeChatAPI): | ||
|
||
def invite_user(self): | ||
pass | ||
|
||
def sync_user(self): | ||
pass | ||
|
||
def replace_user(self): | ||
pass | ||
|
||
def replace_party(self): | ||
pass | ||
|
||
def get_result(self, job_id): | ||
""" | ||
获取异步任务结果 | ||
详情请参考 | ||
http://qydev.weixin.qq.com/wiki/index.php?title=异步任务接口 | ||
:param job_id: 异步任务id,最大长度为64字符 | ||
:return: 返回的 JSON 数据包 | ||
""" | ||
return self._get( | ||
'batch/getresult', | ||
params={ | ||
'jobid': job_id | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.