kandy-cpaas2-sample-sms
SMS app
This app is used to create communication channel between two users via SMS APIs.
User manual
- Create an account on AT&T portal via Register now for a free account.
- Open 2 instances of
index.html
in the browser for User1 and User2.
- Enter the server URL, for e.g.,
- Choose to get accessToken by Password Grant flow or Client Credentials flow.
- Login using two different users’ credentials in both the browser windows.
- For Password Grant flow, enter
- clientId
- emailId
- password
- phone number
- For Client Credentials Grant flow, enter
- Click Login
- After successful login you will get an accessToken for User1 and User2, that you can use to send/receive SMS between both the users.
- Click Subscribe button in both the browser windows to create the webrtc channel.
- Enter the User2’s User ID or Phone Number into the User1’s browser window under Conversation section; e.g.,
- User ID: janedoe@somedomain.com ([userId]@[domain]), or
- Phone Number: +12223334444 (+[countryCode][areaCode][subscriberNumber])
- Click on Create button to create the conversation between both the users.
- Enter the text message into the User1’s Message input field and Click on Send button.
- Open the User2’s browser window and check the Message input field, if message received than type a message into the User2’s Message input field and click on Send button.
Notes
Development
To setup the project repository, run these commands
git clone https://github.com/hclsampleapps/kandy-cpaas2-sample-sms.git
cd kandy-cpaas2-sample-sms
Then, open index.html
in the browser to view the app.
Branching strategy
To learn about the branching strategy, contribution & coding conventions followed in the project, please refer GitFlow based branching strategy for your project repository