import requests
import json
# API
payload = {
"proxies": {
"useproxy": False
},
"url": "https://api.myip.com/",
"method": "GET",
"headers": {},
"client": 1,
"protocol": "HTTP/2.0",
"redirect": False,
"timeout": 10
}
headers = {
'Content-Type': "application/json",
'Authorization': "Bearer xxxx-xxxx"
}
def main():
payloadStr = json.dumps(payload)
res = requests.post(url="http://127.0.0.1:8080/api/v4/flclient", data=payloadStr, headers=headers)
print(res.text)
if __name__ == "__main__":
main()