Add xiaoice command

This commit is contained in:
Richard Chien
2017-01-11 20:43:37 +08:00
parent 260878c220
commit 656190e70f
5 changed files with 58 additions and 34 deletions

View File

@ -89,5 +89,12 @@ class ApiClient:
except requests.exceptions.ConnectionError:
return None
def wx_consult(self, account, content):
if self.wx_api_url:
try:
return requests.get(self.wx_api_url + '/consult', params={'account': account, 'content': content})
except requests.exceptions.ConnectionError:
return None
client = ApiClient()