Skip to content

Commit

Permalink
Typo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Goncharuk committed Sep 17, 2015
1 parent 4195aa9 commit 0bcbac4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Running examples
.. code-block:: python
>>> CLIENT_ACCESS_TOKEN = '<YOUR_CLIENT_ACCESS_TOKEN>'
>>> SUBSCRIBTION_KEY = '<YOUR_SUBSCRIBTION_KEY>'
>>> SUBSCRIPTION_KEY = '<YOUR_SUBSCRIPTION_KEY>'
...
Features
Expand Down
2 changes: 1 addition & 1 deletion apiai/apiai.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ApiAI(object):
Basic Usage::
>>> import apiai
>>> ai = apiai.ApiAI(<CLIENT_ACCESS_TOKEN>, <SUBSCRIBTION_KEY>)
>>> ai = apiai.ApiAI(<CLIENT_ACCESS_TOKEN>, <SUBSCRIPTION_KEY>)
>>> text_request = ai.text_request()
>>> ...
"""
Expand Down
4 changes: 2 additions & 2 deletions examples/pyaudio_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions examples/send_file_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions examples/send_text_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0bcbac4

Please sign in to comment.