def invoke(obj):
url = "url" + obj["url"]
headers = {
'token': token
}
body = {
}
if obj["type"] == "post":
resp = requests.post(url, headers=headers, json=obj["data"])
return resp.json()
return True