Socket
Socket
Sign inDemoInstall

ubf-to-twilio

Package Overview
Dependencies
98
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ubf-to-twilio

Bundles together multiple Twilio API calls to let you easily deploy a chatbot in a few requests.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

NPM

License: AGPL v3 Tests

What is this?

Bundles together multiple Twilio API calls to let you easily deploy a chatbot in a few requests.

Documentation

The documentation for the ubf-to-twilio can be found here.

Versions

Supported Node.js Versions

This package supports the following Node.js implementations:

  • Node.js 6
  • Node.js 8
  • Node.js 10
  • Node.js 12
  • Node.js 14

Installation

npm i ubf-to-twilio

or

yarn add ubf-to-twilio

Usage

const api = require("ubf-to-twilio")

//Retrieve Twilio Client for API calls.
client = await api.tryConnecting({"username": "TwilioAccountSid", "password": "TwilioAuthToken"})

//List all Phone Numbers on a Twilio Account.
numbers = await api.getSMSAccountPhoneNumbers(client)

//Retrieve all Fully Initialised Chatbots on an Account.
bots = await api.getDeployedBots(client)

//Get back all Chatbots that have no linked Twilio Service.
unlinked_bots = await api.getUnlinkedBots(client)

//Upload your Chatbot.
assistant_id = await api.uploadNewBot(client, bot)

//Set the SMS webhook of a specific number.
api.changeBotPhoneNumber(client, assistant_id, "+447123456789")

//Unset the SMS webhook of a specific chatbot.
api.unlinkFromNumber(client, assistant_id)

//Simulate a Conversation with your Chatbot.
simulated_text = await api.simulateBot(client, assistant_id, "Text you want to simulate!")

//Remove your Chatbot.
api.removeBot(client, assistant_id)

Keywords

FAQs

Last updated on 28 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc