Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Latest commit

 

History

History

sms-two-way-shortcode

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

sms-two-way-shortcode

A simple demo to show how to use 2-way shortcodes in node.js through Africa's Talking.

End Product (screenshot)

screenshot

Pre-requisites

Getting Started

# 1. download ngrok: https://ngrok.com/download

# 2. start ngrok
./ngrok http 3000

# 3. get an API key from AT (for help, see below under 'Resources' section)

# 4. Create your shortcode in the AT dashboard & update the webhook accordingly
# (for help, see below under 'Resources' section)

# webhook example: https://abcd.ngrok.io/webhook/sms

# 5. open the simulator: https://simulator.africastalking.com:1517

# 6. open 'src/constants.js' and update the API key and phone number accordingly

# 7. install packages
npm i

# 8. run
npm start

Resources

Get an API key - link

  • On the sidebar, go to Settings > API Key.

Create a shortcode & update webhook

  • On the sidebar, go to SMS > Shortcodes > Create Shortcode. - link
  • On the sidebar, go to SMS > SMS Callback URLs > Incoming Messages. - link

Open the Simulator - link

  • On the sidebar, go to Launch Simulator.

Pull Requests

Any and all PRs are open.