Skip to main content

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.

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

# 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

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_world_time-0.2.0.tar.gz.

File metadata

File hashes

Hashes for ringcentral_bot_framework_extension_world_time-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b593f868e42460b4b9239423b38b8ada3056cf794136e7e280602d119e34b44c
MD5 f665416662cdba9f2f7c5c2f750eb45f
BLAKE2b-256 6aaad68ce9a2b93f5f53a7e059105fcb22ee5c139a12f0b86a225726d20710d4

See more details on using hashes here.

File details

Details for the file ringcentral_bot_framework_extension_world_time-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ringcentral_bot_framework_extension_world_time-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 086cce65b81e6a062fc46aacab7d76cc894f49c95098d4e268ad9513dd847f3b
MD5 04b1847c11720cb9fa24be9ceb18dabf
BLAKE2b-256 ab9b804772700713ee4d8e53586c2bca88c59e61912daf49e9c63c0814136707

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