diff --git a/README.rst b/README.rst index 6a61fc9..47a288a 100644 --- a/README.rst +++ b/README.rst @@ -28,7 +28,7 @@ Running examples .. code-block:: python >>> CLIENT_ACCESS_TOKEN = '' - >>> SUBSCRIBTION_KEY = '' + >>> SUBSCRIPTION_KEY = '' ... Features diff --git a/apiai/apiai.py b/apiai/apiai.py index c5a3800..b49e24e 100644 --- a/apiai/apiai.py +++ b/apiai/apiai.py @@ -41,7 +41,7 @@ class ApiAI(object): Basic Usage:: >>> import apiai - >>> ai = apiai.ApiAI(, ) + >>> ai = apiai.ApiAI(, ) >>> text_request = ai.text_request() >>> ... """ diff --git a/examples/pyaudio_example.py b/examples/pyaudio_example.py index fa95728..02a3038 100644 --- a/examples/pyaudio_example.py +++ b/examples/pyaudio_example.py @@ -18,14 +18,14 @@ RECORD_SECONDS = 2 CLIENT_ACCESS_TOKEN = 'YOUR_ACCESS_TOKEN' -SUBSCRIBTION_KEY = 'YOUR_SUBSCRIPTION_KEY' +SUBSCRIPTION_KEY = 'YOUR_SUBSCRIPTION_KEY' def main(): resampler = apiai.Resampler(source_samplerate=RATE) vad = apiai.VAD() - ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN, SUBSCRIBTION_KEY) + ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN, SUBSCRIPTION_KEY) request = ai.voice_request() diff --git a/examples/send_file_example.py b/examples/send_file_example.py index f1ff492..9147ed6 100644 --- a/examples/send_file_example.py +++ b/examples/send_file_example.py @@ -17,10 +17,10 @@ from codecs import open CLIENT_ACCESS_TOKEN = 'YOUR_ACCESS_TOKEN' -SUBSCRIBTION_KEY = 'YOUR_SUBSCRIPTION_KEY' +SUBSCRIPTION_KEY = 'YOUR_SUBSCRIPTION_KEY' def main(): - ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN, SUBSCRIBTION_KEY) + ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN, SUBSCRIPTION_KEY) request = ai.voice_request() diff --git a/examples/send_text_example.py b/examples/send_text_example.py index 3992216..ce51a3d 100644 --- a/examples/send_text_example.py +++ b/examples/send_text_example.py @@ -13,10 +13,10 @@ import scipy.io.wavfile as wav CLIENT_ACCESS_TOKEN = 'YOUR_ACCESS_TOKEN' -SUBSCRIBTION_KEY = 'YOUR_SUBSCRIPTION_KEY' +SUBSCRIPTION_KEY = 'YOUR_SUBSCRIPTION_KEY' def main(): - ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN, SUBSCRIBTION_KEY) + ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN, SUBSCRIPTION_KEY) request = ai.text_request() diff --git a/tests/test_actions.py b/tests/test_actions.py index b6322fe..d8ccba3 100644 --- a/tests/test_actions.py +++ b/tests/test_actions.py @@ -12,11 +12,11 @@ import apiai CLIENT_ACCESS_TOKEN = '09604c7f91ce4cd8a4ede55eb5340b9d' -SUBSCRIBTION_KEY = '4c91a8e5-275f-4bf0-8f94-befa78ef92cd' +SUBSCRIPTION_KEY = '4c91a8e5-275f-4bf0-8f94-befa78ef92cd' class TestActions(unittest.TestCase): def setUp(self): - self.ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN, SUBSCRIBTION_KEY) + self.ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN, SUBSCRIPTION_KEY) def load_text_request_with_quiery(self, query=None, resetContexts=False, entities=None): if not query: