Skip to content

Commit cf5423f

Browse files
author
Tony Bedford
authored
Merge pull request Vonage#74 from Nexmo/tony-sandbox
Initial sandbox versions
2 parents 173b615 + 405d08c commit cf5423f

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
curl -X POST $MESSAGES_SANDBOX_URL \
2+
-u $NEXMO_API_KEY:$NEXMO_API_SECRET \
3+
-H 'Content-Type: application/json' \
4+
-H 'Accept: application/json' \
5+
-d '{
6+
"from": { "type": "messenger", "id": "'$FB_SANDBOX_ID'" },
7+
"to": { "type": "messenger", "id": "'$FB_RECIPIENT_ID'" },
8+
"message": {
9+
"content": {
10+
"type": "text",
11+
"text": "Messenger message sent from Messages Sandbox"
12+
}
13+
}
14+
}'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
curl -X POST $MESSAGES_SANDBOX_URL \
2+
-u $NEXMO_API_KEY:$NEXMO_API_SECRET \
3+
-H 'Content-Type: application/json' \
4+
-H 'Accept: application/json' \
5+
-d '{
6+
"from": { "type": "viber_service_msg", "id": "'$VIBER_SANDBOX_ID'" },
7+
"to": { "type": "viber_service_msg", "number": "'$TO_NUMBER'" },
8+
"message": {
9+
"content": {
10+
"type": "text",
11+
"text": "This is a Viber Service Message sent from the Messages Sandbox"
12+
}
13+
}
14+
}'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
curl -X POST $MESSAGES_SANDBOX_URL \
2+
-u $NEXMO_API_KEY:$NEXMO_API_SECRET \
3+
-H 'Content-Type: application/json' \
4+
-H 'Accept: application/json' \
5+
-d '{
6+
"from": { "type": "whatsapp", "number": "'$WHATSAPP_SANDBOX_NUMBER'" },
7+
"to": { "type": "whatsapp", "number": "'$TO_NUMBER'" },
8+
"message": {
9+
"content": {
10+
"type": "text",
11+
"text": "This is a WhatsApp Message sent from the Messages Sandbox"
12+
}
13+
}
14+
}'

0 commit comments

Comments
 (0)