-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for MessagingTemplate (WhatsApp) Canned Responses
- Loading branch information
Gildas Cherruel
committed
Jul 25, 2023
1 parent
c1849d0
commit d82125a
Showing
4 changed files
with
223 additions
and
18 deletions.
There are no files selected for viewing
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
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
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,31 @@ | ||
{ | ||
"id": "86CABAAE-BD5E-4615-A4F2-712467E808F0", | ||
"name": "response-01", | ||
"version": 12, | ||
"libraries": [ | ||
{ | ||
"id": "2035D559-793E-4F4B-9A09-118D9C265EFD", | ||
"name": "Test Library", | ||
"selfUri": "/api/v2/responsemanagement/libraries/2035D559-793E-4F4B-9A09-118D9C265EFD" | ||
} | ||
], | ||
"texts": [ | ||
{ | ||
"content": "Hello {{Name}}", | ||
"contentType": "text/plain" | ||
} | ||
], | ||
"createdBy": { | ||
"id": "DDA998ED-2258-4317-8070-2745465B8B28", | ||
"selfUri": "/api/v2/users/DDA998ED-2258-4317-8070-2745465B8B28" | ||
}, | ||
"dateCreated": "2023-07-25T07:30:10.449Z", | ||
"substitutions": [ | ||
{ | ||
"id": "Name", | ||
"defaultValue": "John Doe" | ||
} | ||
], | ||
"responseType": "CampaignSmsTemplate", | ||
"selfUri": "/api/v2/responsemanagement/responses/86CABAAE-BD5E-4615-A4F2-712467E808F0" | ||
} |
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,38 @@ | ||
{ | ||
"id": "A7F1F131-7E50-4117-982A-2D5C55C9ED5E", | ||
"name": "response-02", | ||
"version": 1, | ||
"libraries": [ | ||
{ | ||
"id": "2035D559-793E-4F4B-9A09-118D9C265EFD", | ||
"name": "Test Library", | ||
"selfUri": "/api/v2/responsemanagement/libraries/2035D559-793E-4F4B-9A09-118D9C265EFD" | ||
} | ||
], | ||
"texts": [ | ||
{ | ||
"content": "Hello {{Name}}", | ||
"contentType": "text/plain" | ||
} | ||
], | ||
"createdBy": { | ||
"id": "DDA998ED-2258-4317-8070-2745465B8B28", | ||
"selfUri": "/api/v2/users/DDA998ED-2258-4317-8070-2745465B8B28" | ||
}, | ||
"dateCreated": "2023-07-25T07:30:10.449Z", | ||
"substitutions": [ | ||
{ | ||
"id": "Name", | ||
"defaultValue": "John Doe" | ||
} | ||
], | ||
"responseType": "MessagingTemplate", | ||
"messagingTemplate": { | ||
"whatsApp": { | ||
"name": "template-01", | ||
"namespace": "templates", | ||
"language": "en_US" | ||
} | ||
}, | ||
"selfUri": "/api/v2/responsemanagement/responses/A7F1F131-7E50-4117-982A-2D5C55C9ED5E" | ||
} |