Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.09 KB

readme.md

File metadata and controls

34 lines (21 loc) · 1.09 KB

node-twilio

Twilo CLI to change WhatsApp Webhook URL for incoming messages.

This nodeJS code works on command line.

Get Started

To manually change the webhook for a Twilio phone number, you need to access painel, and then click -> Edit Sender

To change a webhook from a number on twilio, with this code, you need to pass your credentials (Account SID and Account Token) and the identification string (SID) of the phone number you want to change the url.

Credentials must be written in the project's .env file.

Commands

This code accepts the following commands:

Command Description
sid list all of phone number sid codes on Twilio account
url change the webhook url on Twilio

List Twilio Phone Numbers SIDs

node index.js sid

Change Webhook URL

node index.js url {your url here} -p {SID phone number}