You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A short description of your sample app and its capabilities.
12
+
A simple dial pad application used to create calls using our WebRTC SDK.
15
13
16
14
# Pre-Requisites
17
15
18
-
In order to use the Bandwidth API users need to set up the appropriate application at the [Bandwidth Dashboard](https://dashboard.bandwidth.com/) and create API tokens.
19
-
20
-
To create an application log into the [Bandwidth Dashboard](https://dashboard.bandwidth.com/) and navigate to the `Applications` tab. Fill out the **New Application** form selecting the service (Messaging or Voice) that the application will be used for. All Bandwidth services require publicly accessible Callback URLs, for more information on how to set one up see [Callback URLs](#callback-urls).
16
+
In order to use this sample app, your account must have In-App Calling enabled. You will also have to generate an auth token using our Identity API.
21
17
22
18
For more information about API credentials see our [Account Credentials](https://dev.bandwidth.com/docs/account/credentials) page.
23
19
@@ -26,40 +22,14 @@ For more information about API credentials see our [Account Credentials](https:/
26
22
Use the following command/s to run the application:
27
23
28
24
```sh
29
-
# start command here
25
+
yarn start
30
26
```
31
27
32
28
# Environmental Variables
33
29
34
30
The sample app uses the below environmental variables.
35
31
36
32
```sh
37
-
BW_ACCOUNT_ID # Your Bandwidth Account Id
38
-
BW_USERNAME # Your Bandwidth API Username
39
-
BW_PASSWORD # Your Bandwidth API Password
40
-
BW_NUMBER # The Bandwidth phone number involved with this application
41
-
USER_NUMBER # The user's phone number involved with this application
42
-
BW_VOICE_APPLICATION_ID # Your Voice Application Id created in the dashboard
43
-
BW_MESSAGING_APPLICATION_ID # Your Messaging Application Id created in the dashboard
44
-
BASE_CALLBACK_URL # Your public base url to receive Bandwidth Webhooks. No trailing '/'
45
-
LOCAL_PORT # The port number you wish to run the sample on
46
-
```
47
-
48
-
# Callback URLs
49
-
50
-
For a detailed introduction, check out our [Bandwidth Product Specific Callbacks](https://dev.bandwidth.com/docs/messaging/webhooks) page.
A simple way to set up a local callback URL for testing is to use the free tool [ngrok](https://ngrok.com/).
59
-
After you have downloaded and installed `ngrok` run the following command to open a public tunnel to your port (`$LOCAL_PORT`)
60
-
61
-
```sh
62
-
ngrok http $LOCAL_PORT
33
+
REACT_APP_IN_APP_CALLING_TOKEN # You Identity Token
34
+
REACT_APP_IN_APP_CALLING_NUMBER # A valid phone number on your account
63
35
```
64
-
65
-
You can view your public URL at `http://127.0.0.1:{LOCAL_PORT}` after ngrok is running. You can also view the status of the tunnel and requests/responses here.
0 commit comments