File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 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+ }'
Original file line number Diff line number Diff line change 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+ }'
Original file line number Diff line number Diff line change 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+ }'
You can’t perform that action at this time.
0 commit comments