mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-08-12 11:40:34 +08:00
Fix for texttagging batch support, adding in a few more tests
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user