- Build a currency converter service using RingCentral SMS framework.
- This demo project shows how to use RingCentral SMS and Push Notification APIs to implement a SMS bot. The bot will listen for incoming SMS text commands then reply to the sender with relevant content.
Text commands:
- ? Or help for getting instructions.
- symbol/n for getting a list of foreign currency symbols, where n is the first alphabet of a country’s name.
- base/target for getting a current exchange rate, where target is the currency symbol to be quoted against the base currency symbol.
git clone https://github.com/ringcentral-tutorials/a2p-sms-messaging
cd a2p-sms-messaging
npm intall --save
- Rename the dotenv to .env and provide your app credentials, RingCentral sandbox account's username and password
- Replace this "YOUR_WEBSERVER_POST_HOOK_OR_NGROK_FORWARDING" with your webhook address
If you run the app in a localhost, you can use ngrok to get an address
- If you want to use PubNub for notification, open the .env file and change the value of the DELIVERY_MODE_TRANSPORT_TYPE to "PubNub" (i.e. DELIVERY_MODE_TRANSPORT_TYPE=PubNub)
To setup a RingCentral developer free account, click here