Simple ringcentral chatbot framework python extension that add `bot info` command support.
Project description
ringcentral-chatbot-python-ext-bot-info
Simple ringcentral chatbot python extension that add bot info
command support.
Table of contents
Use
Just follow ringcentral-chatbot-python#use-extensions, set EXTENSIONS=ringcentral_bot_framework_extension_botinfo
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
npm i
# 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
Release history Release notifications | RSS feed
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_botinfo-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c211d1ae60075f9bd332a527064da22ef63ef4c0b74864fd80d6c94f4abd3f78 |
|
MD5 | c9b06087be1c045adeca334fa7f638b8 |
|
BLAKE2b-256 | fafe1207aeb77e399d7be908c588c1f5461b683151a747c4b8ac0cbcf538b6d3 |
Close
Hashes for ringcentral_bot_framework_extension_botinfo-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a33c6f603a33479e40cd9d89b20229b9b57cd70b063ee7c525d8936a794adea |
|
MD5 | 70fe40f963c0c9440d8ce34827b9384c |
|
BLAKE2b-256 | f25debb18d75889f576643a9f7aebe54f6dc80540e9458a1f58aae163eae7037 |