Email + password auth from client

This commit is contained in:
Madison May
2014-12-18 15:27:16 -05:00
parent 9ed17b8f34
commit 8149908328
6 changed files with 34 additions and 17 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
from indicoio.utils import api_handler
def language(api_root, text, batch=False):
def language(api_root, text, batch=False, auth=None):
"""
Given input text, returns a probability distribution over 33 possible
languages of what language the text was written in.
@@ -23,4 +23,4 @@ def language(api_root, text, batch=False):
:rtype: Dictionary of language probability pairs
"""
return api_handler(text, api_root + "language", batch=batch)
return api_handler(text, api_root + "language", batch=batch, auth=auth)