core add get_img
This commit is contained in:
parent
2857c4e933
commit
00b9425921
1 changed files with 8 additions and 0 deletions
|
@ -49,6 +49,14 @@ class StdAns():
|
||||||
}
|
}
|
||||||
return requests.get(url = url, params=data).json()['data']['message_id']
|
return requests.get(url = url, params=data).json()['data']['message_id']
|
||||||
|
|
||||||
|
def get_img(self,cache_name):
|
||||||
|
url = APIURL + "get_image"
|
||||||
|
|
||||||
|
data = {
|
||||||
|
'access_token' : AUTHORIZATION,
|
||||||
|
'file': cache_name
|
||||||
|
}
|
||||||
|
return requests.get(url = url, params=data).json()['data']['url']
|
||||||
|
|
||||||
def delmsg(self,msgid):
|
def delmsg(self,msgid):
|
||||||
url = APIURL + "delete_msg"
|
url = APIURL + "delete_msg"
|
||||||
|
|
Loading…
Reference in a new issue