Simple ringcentral chatbot framework python extension that add `world time` command support.
Project description
ringcentral-chatbot-python-ext-world-time
Simple ringcentral chatbot python extension that add world time
command support.
Table of contents
Use
Just follow ringcentral-chatbot-python#use-extensions, set EXTENSIONS=ringcentral_bot_framework_extension_world_time
Prerequisites
- Python3.6+ and Pip3
- Create the bot App: Login to developer.ringcentral.com and create an
public
Server/Bot
app with permissions:ReadContacts, ReadMessages, ReadPresence, Contacts, ReadAccounts, SMS, InternalMessages, ReadCallLog, ReadCallRecording, WebhookSubscriptions, Glip
Quick start
# use virtualenv
pip3 install virtualenv # might need sudo
# init virtual env
virtualenv venv --python=python3
# use env
source ./venv/bin/activate
# install deps
pip install -r requirements.txt
# run ngrok proxy
# since bot need https server,
# so we need a https proxy for ringcentral to visit our local server
./bin/proxy
# will show:
# Forwarding https://xxxxx.ngrok.io -> localhost:8989
# create env file
cp .sample.env .env
# then edit .env, set proper setting,
# and goto your ringcentral app setting page, set OAuth Redirect URI to https://https://xxxxx.ngrok.io/bot-oauth
RINGCENTRAL_BOT_SERVER=https://xxxxx.ngrok.io
## for bots auth required, get them from your ringcentral app page
RINGCENTRAL_BOT_CLIENT_ID=
RINGCENTRAL_BOT_CLIENT_SECRET=
# run local dev server
./bin/start
Test bot
- Goto your ringcentral app's bot section, click 'Add to glip'
- Login to https://glip-app.devtest.ringcentral.com, find the bot by searching its name. Talk to the bot.
- Edit config.py to change bot bahavior and test in https://glip-app.devtest.ringcentral.com
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ringcentral_bot_framework_extension_world_time-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 708f0cbe0caed44915931bbb163d93c57b222ad9104d13962385fb5307bb71c5 |
|
MD5 | 69b3b3cd43449f534f760e60b01458a2 |
|
BLAKE2b-256 | 1044c6bd20dcb14e6ba0cd87b64fc164222f86debfd56559b6ca815cfc4dec19 |
Close
Hashes for ringcentral_bot_framework_extension_world_time-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31a3b5d022cb385e6c4aa0384052c5fe6c60c2e80838b46a759d55b053e3063b |
|
MD5 | 231a5b7ff933ccb87dd996d83d6dc30c |
|
BLAKE2b-256 | 64ecbe59c96aca32619829cc0a9eb61c87c64f393bd01e3981c7473c8d04afcf |