Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 689 Bytes

File metadata and controls

37 lines (26 loc) · 689 Bytes

Direct use, no CLI

You can certainly use it as a module instead of a CLI tool.

Check src/ringcentral_engage_digital_source_sdk/run_server.py

For nodejs server

from ringcentral_engage_digital_source_sdk import createApp

def runServer(conf):
  port = 9898
  host = '127.0.0.1'
  app = createApp(conf)
  app.run(
    host=host,
    port=port,
    debug=True,
    load_dotenv=True
  )

For AWS Lambda

import { createApp } from 'ringcentral-engage-source'

const path = './auto-reply-all.js'
console.log('-> bot:', path)
const conf = require(path)
const app = createApp(conf)

export default app