forked from nyaruka/courier
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,684 additions
and
20 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"object": "whatsapp_business_account", | ||
"entry": [ | ||
{ | ||
"id": "8856996819413533", | ||
"changes": [ | ||
{ | ||
"value": { | ||
"messaging_product": "whatsapp", | ||
"metadata": { | ||
"display_phone_number": "12345", | ||
"phone_number_id": "27681414235104944" | ||
}, | ||
"contacts": [ | ||
{ | ||
"profile": { | ||
"name": "Kerry Fisher" | ||
}, | ||
"wa_id": "5678" | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"from": "5678", | ||
"id": "external_id", | ||
"audio": { | ||
"file": "/usr/local/wamedia/shared/b1cf38-8734-4ad3-b4a1-ef0c10d0d683", | ||
"id": "id_audio", | ||
"mime_type": "image/jpeg", | ||
"sha256": "29ed500fa64eb55fc19dc4124acb300e5dcc54a0f822a301ae99944db", | ||
"caption": "Check out my new phone!" | ||
}, | ||
"timestamp": "1454119029", | ||
"type": "audio" | ||
} | ||
] | ||
}, | ||
"field": "messages" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"object": "whatsapp_business_account", | ||
"entry": [ | ||
{ | ||
"id": "8856996819413533", | ||
"changes": [ | ||
{ | ||
"value": { | ||
"messaging_product": "whatsapp", | ||
"metadata": { | ||
"display_phone_number": "12345", | ||
"phone_number_id": "27681414235104944" | ||
}, | ||
"contacts": [ | ||
{ | ||
"profile": { | ||
"name": "Kerry Fisher" | ||
}, | ||
"wa_id": "5678" | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"button": { | ||
"payload": "No-Button-Payload", | ||
"text": "No" | ||
}, | ||
"context": { | ||
"from": "5678", | ||
"id": "gBGGFmkiWVVPAgkgQkwi7IORac0" | ||
}, | ||
"from": "5678", | ||
"id": "external_id", | ||
"timestamp": "1454119029", | ||
"type": "button" | ||
} | ||
] | ||
}, | ||
"field": "messages" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"object": "whatsapp_business_account", | ||
"entry": [ | ||
{ | ||
"id": "8856996819413533", | ||
"changes": [ | ||
{ | ||
"value": { | ||
"messaging_product": "whatsapp", | ||
"metadata": { | ||
"display_phone_number": "12345", | ||
"phone_number_id": "27681414235104944" | ||
}, | ||
"contacts": [ | ||
{ | ||
"profile": { | ||
"name": "Kerry Fisher" | ||
}, | ||
"wa_id": "5678" | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"from": "5678", | ||
"id": "external_id", | ||
"timestamp": "1454119029", | ||
"type": "document", | ||
"document": { | ||
"caption": "80skaraokesonglistartist", | ||
"file": "/usr/local/wamedia/shared/fc233119-733f-49c-bcbd-b2f68f798e33", | ||
"id": "id_document", | ||
"mime_type": "application/pdf", | ||
"sha256": "3b11fa6ef2bde1dd14726e09d3edaf782120919d06f6484f32d5d5caa4b8e" | ||
} | ||
} | ||
] | ||
}, | ||
"field": "messages" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"object": "whatsapp_business_account", | ||
"entry": [ | ||
{ | ||
"id": "8856996819413533", | ||
"changes": [ | ||
{ | ||
"value": { | ||
"messaging_product": "whatsapp", | ||
"metadata": { | ||
"display_phone_number": "12345", | ||
"phone_number_id": "27681414235104944" | ||
}, | ||
"contacts": [ | ||
{ | ||
"profile": { | ||
"name": "Kerry Fisher" | ||
}, | ||
"wa_id": "5678" | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"from": "5678", | ||
"id": "external_id", | ||
"timestamp": "1454119029", | ||
"text": { | ||
"body": "Hello World" | ||
}, | ||
"type": "text" | ||
}, | ||
{ | ||
"from": "5678", | ||
"id": "external_id", | ||
"timestamp": "1454119029", | ||
"text": { | ||
"body": "Hello World" | ||
}, | ||
"type": "text" | ||
} | ||
] | ||
}, | ||
"field": "messages" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"object": "whatsapp_business_account", | ||
"entry": [ | ||
{ | ||
"id": "8856996819413533", | ||
"changes": [ | ||
{ | ||
"value": { | ||
"messaging_product": "whatsapp", | ||
"metadata": { | ||
"display_phone_number": "12345", | ||
"phone_number_id": "27681414235104944" | ||
}, | ||
"contacts": [ | ||
{ | ||
"profile": { | ||
"name": "Kerry Fisher" | ||
}, | ||
"wa_id": "5678" | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"from": "5678", | ||
"id": "external_id", | ||
"timestamp": "1454119029", | ||
"text": { | ||
"body": "Hello World" | ||
}, | ||
"type": "text" | ||
} | ||
] | ||
}, | ||
"field": "messages" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"object": "whatsapp_business_account", | ||
"entry": [ | ||
{ | ||
"id": "8856996819413533", | ||
"changes": [ | ||
{ | ||
"value": { | ||
"messaging_product": "whatsapp", | ||
"metadata": { | ||
"display_phone_number": "12345", | ||
"phone_number_id": "27681414235104944" | ||
}, | ||
"contacts": [ | ||
{ | ||
"profile": { | ||
"name": "Kerry Fisher" | ||
}, | ||
"wa_id": "5678" | ||
} | ||
], | ||
"statuses": [ | ||
{ | ||
"id": "external_id", | ||
"recipient_id": "5678", | ||
"status": "deleted", | ||
"timestamp": "1454119029", | ||
"type": "message", | ||
"conversation": { | ||
"id": "CONVERSATION_ID", | ||
"expiration_timestamp": 1454119029, | ||
"origin": { | ||
"type": "referral_conversion" | ||
} | ||
}, | ||
"pricing": { | ||
"pricing_model": "CBP", | ||
"billable": false, | ||
"category": "referral_conversion" | ||
} | ||
} | ||
] | ||
}, | ||
"field": "messages" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"object": "whatsapp_business_account", | ||
"entry": [ | ||
{ | ||
"id": "8856996819413533", | ||
"changes": [ | ||
{ | ||
"value": { | ||
"messaging_product": "whatsapp", | ||
"metadata": { | ||
"display_phone_number": "12345", | ||
"phone_number_id": "27681414235104944" | ||
}, | ||
"contacts": [ | ||
{ | ||
"profile": { | ||
"name": "Kerry Fisher" | ||
}, | ||
"wa_id": "5678" | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"from": "5678", | ||
"id": "external_id", | ||
"image": { | ||
"file": "/usr/local/wamedia/shared/b1cf38-8734-4ad3-b4a1-ef0c10d0d683", | ||
"id": "id_image", | ||
"mime_type": "image/jpeg", | ||
"sha256": "29ed500fa64eb55fc19dc4124acb300e5dcc54a0f822a301ae99944db", | ||
"caption": "Check out my new phone!" | ||
}, | ||
"timestamp": "1454119029", | ||
"type": "image" | ||
} | ||
] | ||
}, | ||
"field": "messages" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"object": "whatsapp_business_account", | ||
"entry": [ | ||
{ | ||
"id": "8856996819413533", | ||
"changes": [ | ||
{ | ||
"value": { | ||
"messaging_product": "whatsapp", | ||
"metadata": { | ||
"display_phone_number": "12345", | ||
"phone_number_id": "27681414235104944" | ||
}, | ||
"contacts": [ | ||
{ | ||
"profile": { | ||
"name": "Kerry Fisher" | ||
}, | ||
"wa_id": "bla" | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"from": "bla", | ||
"id": "external_id", | ||
"timestamp": "1454119029", | ||
"text": { | ||
"body": "Hello World" | ||
}, | ||
"type": "text" | ||
} | ||
] | ||
}, | ||
"field": "messages" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.