简单的ringcentral chatbot框架python扩展,添加了“world time”命令支持。

ringcentral-bot-framework-extension-world-time的Python项目详细描述


ringcentral-chatbot-python-ext-world-time

简单的ringcentral chatbot python扩展,添加了world time命令支持。

screen

目录

使用

Use/write extensions

先决条件

  • python3.6+和pip3
  • 创建bot应用程序:登录到developer.ringcentral.com,并创建具有以下权限的publicServer/Bot应用程序:ReadContacts, ReadMessages, ReadPresence, Contacts, ReadAccounts, SMS, InternalMessages, ReadCallLog, ReadCallRecording, WebhookSubscriptions, Glip

快速启动

# use virtualenv
pip3 install virtualenv # might need sudo# init virtual env
virtualenv venv --python=python3

# use envsource ./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-oauthRINGCENTRAL_BOT_SERVER=https://xxxxx.ngrok.io

## for bots auth required, get them from your ringcentral app pageRINGCENTRAL_BOT_CLIENT_ID=RINGCENTRAL_BOT_CLIENT_SECRET=# create bot config
cp config.sample.py config.py

# run local dev server
./bin/start

测试机器人

许可证

麻省理工学院

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何拆分字符串(基于各种分隔符),但不保留空格?   解析。Json格式的txt文件和knime中的java   java Spring rest api为什么在rest api调用的响应中更改了数据类型   升华文本3抛出java。lang.ClassNotFoundException,而记事本++不存在   java Android指纹扫描仪在尝试5次后停止工作?   java Android如何设置精确的重复报警?   java如何使用HTTPGET connect为access API输入用户名和密码   java当测试报告显示没有测试失败时,Gradle为什么说“有失败的测试”?   用Gson实现java获取响应   MapReduce程序中函数错误的java不可映射参数   java spring安全性不符合自动代理的条件   java GWT使用异步回调进行同步/阻塞调用   java奇怪的类数组问题无法在jsp中显示   如何在java中使用PrinterJob使用epl打印条形码   java如何在JTable中居中单元格   将Java Mockito测试转换为Kotlin   html Java正则表达式模式匹配到多个相同标记   testCompile中缺少java Gradle(Android)多项目依赖项   在输入提示后输入字符串时发生java FileNotFoundException