提交代码调整。
This commit is contained in:
18
gewechat/client/fetchContactsList.py
Normal file
18
gewechat/client/fetchContactsList.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
url = "/contacts/fetchContactsList"
|
||||
|
||||
base_url="http://192.168.2.240:2531/v2/api"
|
||||
payload = json.dumps({
|
||||
"appId": "wx_3BC6eSHGE5xEm_hH3__7c"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'X-GEWE-TOKEN': 'cb43f52db27e4a56bb6ec7da54373582',
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
response = requests.request("POST", base_url+url, headers=headers, data=payload)
|
||||
|
||||
print(response.text)
|
||||
Reference in New Issue
Block a user