nulab / typetalk-ws-python-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Python 100.0%