Fix for texttagging batch support, adding in a few more tests

This commit is contained in:
Madison May
2014-12-20 15:34:07 -05:00
parent 5b1ab380a7
commit aa63a831c6
3 changed files with 33 additions and 3 deletions
+3 -2
View File
@@ -26,8 +26,9 @@ def api_handler(arg, url, batch=False, auth=None, **kwargs):
json_data = json.dumps(data)
if batch:
url += "/batch"
if not auth:
auth = auth_query()
# if not auth:
# auth = auth_query()
print auth
response = requests.post(url, data=json_data, headers=JSON_HEADERS, auth=auth).json()
results = response.get('results', False)
if results is False: