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

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

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

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

  • Download URL: ringcentral_bot_framework_extension_botinfo-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for ringcentral_bot_framework_extension_botinfo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 063425f073bb1e7c7dc5da21cede737227da6d6279a7cf73697d0b4c87867c92
MD5 2453de6eab55fcc66af632f4f1d3e246
BLAKE2b-256 e395b6fd8976809b08f4c26ea797cc3629f9ba9c03aece769d8d88b4562c317b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ringcentral_bot_framework_extension_botinfo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49d7262a27e5865634173bf9ea7ef18a0f7fdfe194dc52d3b3609d7e2dcb13d7
MD5 26ff72eb45886c4bd07a6bf9a158c9cd
BLAKE2b-256 56e4763271b980bc56410551a4e57c8a301dcb9a8c30f18c8268784ce6275c96

See more details on using hashes here.

Supported by

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