def create_task(self, title, desc):
url = self.ip
payload = json.dumps({'title': title, 'desc': desc})
# payload1 = {'title': title, 'desc': desc}
headers = {'content-type': "application/json"}
response = requests.request("POST", url, data=payload, headers=headers)
return response.json()