/typetalk-ws-python-example

Example code for Streaming API http://www.typetalk.in

Primary LanguagePython

Typetalk WebSocket client sample

Setup

Requirement

This sample requires Python 3.x.

Install required libraries

$ pip install -r requirements.txt

Register application to issue token

Create your application to use API. When issuing client id and client secret, you should select "Client Credentials" for "Grant Type".

Run sample application

You should set the following environment variables to run the sample application in advance.

$ export TYPETALK_CLIENT_ID=XXXX
$ export TYPETALK_CLIENT_SECRET=XXXX
$ ./main.py