Skip to content

Commit 6a7783f

Browse files
committed
README updates
1 parent 074dd61 commit 6a7783f

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,21 @@ npm start
3737

3838
The application should be available on <http://localhost:5000>.
3939

40+
If you have not set up predefined numbers you can access <http://localhost:5000/provision> for the application to provision numbers.
41+
4042
### Using the App
4143

42-
Call one of the virtual numbers that you rented. The call will be tracked and forwarded to the desired destination number.
44+
Register a conversation with the application so that mappings can be created between real user numbers and Nexmo virtual numbers. This is done by making a `POST` such as the following to <http://localhost:5000/conversation>:
45+
46+
```
47+
POST /conversation HTTP/1.1
48+
Host: localhost:5000
49+
Cache-Control: no-cache
50+
Content-Type: application/x-www-form-urlencoded
51+
52+
userANumber=USER_A_NUMBER&userBNumber=USER_B_NUMBER
53+
```
54+
55+
When you do this each of the users will receive a text. Reply to that text will allow the to communicate anonymously with each other.
4356

44-
You can see a list of tracked calls by accessing <http://localhost:5000/tracked-calls>.
57+
You can see a list of registered conversations by accessing <http://localhost:5000/conversations>.

0 commit comments

Comments
 (0)