|
|
@ -65,7 +65,7 @@ class API(object):
|
|
|
|
kwargs.update(headers=headers,data=json.dumps(data))
|
|
|
|
kwargs.update(headers=headers,data=json.dumps(data))
|
|
|
|
|
|
|
|
|
|
|
|
elif method == "PUT":
|
|
|
|
elif method == "PUT":
|
|
|
|
fn = requests.post
|
|
|
|
fn = requests.put
|
|
|
|
headers = {"content-type": "application/json"}
|
|
|
|
headers = {"content-type": "application/json"}
|
|
|
|
kwargs.update(headers=headers,data=json.dumps(data))
|
|
|
|
kwargs.update(headers=headers,data=json.dumps(data))
|
|
|
|
|
|
|
|
|
|
|
|