Skip to content

Commit 0e0114a

Browse files
author
Tony Bedford
authored
Merge pull request Vonage#75 from Nexmo/tony-sandbox-config
For initial sandbox testing
2 parents cf5423f + 2c79302 commit 0e0114a

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

config.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ FILE_CAPTION=${FILE_CAPTION:-""}
3333
AUDIO_URL=${AUDIO_URL:-""}
3434
VIDEO_URL=${VIDEO_URL:-""}
3535

36+
# Messages Sandbox testing
37+
MESSAGES_SANDBOX_URL=${MESSAGES_SANDBOX_URL:-"https://messages-sandbox.nexmo.com/v0.1/messages"}
38+
FB_SANDBOX_ID=${FB_SANDBOX_ID:-"107083064136738"}
39+
VIBER_SANDBOX_ID=${VIBER_SANDBOX_ID:-"16273"}
40+
WHATSAPP_SANDBOX_NUMBER=${WHATSAPP_SANDBOX_NUMBER:-"14157386170"}
41+
3642
ACCOUNT_ID=${ACCOUNT_ID:-""} # For APIs that allow you to access the resources of a sub account
3743

3844
# Account API

messages/sandbox/messenger/send-text.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
source "../../../config.sh"
4+
15
curl -X POST $MESSAGES_SANDBOX_URL \
26
-u $NEXMO_API_KEY:$NEXMO_API_SECRET \
37
-H 'Content-Type: application/json' \

messages/sandbox/viber/send-text.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
source "../../../config.sh"
4+
15
curl -X POST $MESSAGES_SANDBOX_URL \
26
-u $NEXMO_API_KEY:$NEXMO_API_SECRET \
37
-H 'Content-Type: application/json' \

messages/sandbox/whatsapp/send-text.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
source "../../../config.sh"
4+
15
curl -X POST $MESSAGES_SANDBOX_URL \
26
-u $NEXMO_API_KEY:$NEXMO_API_SECRET \
37
-H 'Content-Type: application/json' \

0 commit comments

Comments
 (0)