Skip to main content

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.

screen

Table of contents

Use

Use/write extensions

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=

# create bot config
cp config.sample.py config.py

# run local dev server
./bin/start

Test bot

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

File details

Details for the file ringcentral_bot_framework_extension_botinfo-0.4.0.tar.gz.

File metadata

  • Download URL: ringcentral_bot_framework_extension_botinfo-0.4.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for ringcentral_bot_framework_extension_botinfo-0.4.0.tar.gz
Algorithm Hash digest
SHA256 930f7cbb9ee34209ad01998acd0d3a26914f72590bfc335faf9149dd5fc98fce
MD5 7f1f1b6bce3afdd5940d717092d3606d
BLAKE2b-256 e50d186f66aa7d528d3322a554a86f735e7e22da47d608736dbeff62b33c8645

See more details on using hashes here.

File details

Details for the file ringcentral_bot_framework_extension_botinfo-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ringcentral_bot_framework_extension_botinfo-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 203dda189b5ede30281f05655d08ed8d6b66a84674856d1086e2bbeaf961bcb9
MD5 a71683dba044214de41b434c1a1f6372
BLAKE2b-256 6bec0727abe6e3fc8e962b831c8b4b8b55e57ebc86cb3e717989881293eedb6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page