List Messages with text headers
JSON Samples
Sample 1: 1 section with no section title, 4 rows with no descriptions
Changes to be made to the below code snippet:
- Header text
("text" key)
- Body text
("body" key)
- List title
("button" key)
- Row titles (x4)
("title" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"rows":[{"id":"1","title":"Row 1 title"},{"id":"2","title":"Row 2 title"},{"id":"3","title":"Row 3 title"},{"id":"4","title":"Row 4 title"}]}]}}
Sample 2: 1 section with no section title, 4 rows with descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Row titles (x4)
("title" keys)
- Row descriptions (x4)
("description" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"rows":[{"id":"1","title":"Row 1 title","description":"Row 1 description"},{"id":"2","title":"Row 2 title","description":"Row 2 description"},{"id":"3","title":"Row 3 title","description":"Row 3 description"},{"id":"4","title":"Row 4 title","description":"Row 4 description"}]}]}}
Sample 3: 1 section with no section title, 10 rows with no descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Row titles (x10)
("title" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"rows":[{"id":"1","title":"Row 1 title"},{"id":"2","title":"Row 2 title"},{"id":"3","title":"Row 3 title"},{"id":"4","title":"Row 4 title"},{"id":"5","title":"Row 5 title"},{"id":"6","title":"Row 6 title"},{"id":"7","title":"Row 7 title"},{"id":"8","title":"Row 8 title"},{"id":"9","title":"Row 9 title"},{"id":"10","title":"Row 10 title"}]}]}}
Sample 4: 1 section with no section title, 10 rows with descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Row titles (x10)
("title" keys)
- Row descriptions (x10)
("description" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"rows":[{"id":"1","title":"Row 1 title","description":"Row 1 description"},{"id":"2","title":"Row 2 title","description":"Row 2 description"},{"id":"3","title":"Row 3 title","description":"Row 3 description"},{"id":"4","title":"Row 4 title","description":"Row 4 description"},{"id":"5","title":"Row 5 title","description":"Row 5 description"},{"id":"6","title":"Row 6 title","description":"Row 6 description"},{"id":"7","title":"Row 7 title","description":"Row 7 description"},{"id":"8","title":"Row 8 title","description":"Row 8 description"},{"id":"9","title":"Row 9 title","description":"Row 9 description"},{"id":"10","title":"Row 10 title","description":"Row 10 description"}]}]}}
Sample 5: 1 section with section title, 4 rows with no descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Section title
("title" key)
- Row titles (x4)
("title" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"title":"Section Title","rows":[{"id":"1","title":"Row 1 title"},{"id":"2","title":"Row 2 title"},{"id":"3","title":"Row 3 title"},{"id":"4","title":"Row 4 title"}]}]}}
Sample 6: 1 section with section title, 4 rows with descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Section title
("title" key)
- Row titles (x4)
("title" keys)
- Row descriptions (x4)
("description" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"title":"Section Title","rows":[{"id":"1","title":"Row 1 title","description":"Row 1 description"},{"id":"2","title":"Row 2 title","description":"Row 2 description"},{"id":"3","title":"Row 3 title","description":"Row 3 description"},{"id":"4","title":"Row 4 title","description":"Row 4 description"}]}]}}
Sample 7: 1 section with section title, 10 rows with no descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Section title
("title" key)
- Row titles (x10)
("title" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"title":"Section Title","rows":[{"id":"1","title":"Row 1 title"},{"id":"2","title":"Row 2 title"},{"id":"3","title":"Row 3 title"},{"id":"4","title":"Row 4 title"},{"id":"5","title":"Row 5 title"},{"id":"6","title":"Row 6 title"},{"id":"7","title":"Row 7 title"},{"id":"8","title":"Row 8 title"},{"id":"9","title":"Row 9 title"},{"id":"10","title":"Row 10 title"}]}]}}
Sample 8: 1 section with section title, 10 rows with descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Section title
("title" key)
- Row titles (x10)
("title" keys)
- Row descriptions (x10)
("description" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"title":"Section Title","rows":[{"id":"1","title":"Row 1 title","description":"Row 1 description"},{"id":"2","title":"Row 2 title","description":"Row 2 description"},{"id":"3","title":"Row 3 title","description":"Row 3 description"},{"id":"4","title":"Row 4 title","description":"Row 4 description"},{"id":"5","title":"Row 5 title","description":"Row 5 description"},{"id":"6","title":"Row 6 title","description":"Row 6 description"},{"id":"7","title":"Row 7 title","description":"Row 7 description"},{"id":"8","title":"Row 8 title","description":"Row 8 description"},{"id":"9","title":"Row 9 title","description":"Row 9 description"},{"id":"10","title":"Row 10 title","description":"Row 10 description"}]}]}}
Sample 9: 2 sections with section titles, each with 3 rows with no descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Section titles (x2)
("title" keys)
- Row titles (x6)
("title" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"title":"Section 1 Title","rows":[{"id":"11","title":"Section 1 row 1 title"},{"id":"12","title":"Section 1 row 2 title"},{"id":"13","title":"Section 1 row 3 title"}]},{"title":"Section 2 Title","rows":[{"id":"21","title":"Section 2 row 1 title"},{"id":"22","title":"Section 2 row 2 title"},{"id":"23","title":"Section 2 row 3 title"}]}]}}
Sample 10: 2 sections with section title, each with 3 rows with descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Section titles (x2)
("title" keys)
- Row titles (x6)
("title" keys)
- Row descriptions (x6)
("description" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"title":"Section 1 Title","rows":[{"id":"11","title":"Section 1 row 1 title","description":"Section 1 row 1 description"},{"id":"12","title":"Section 1 row 2 title","description":"Section 1 row 2 description"},{"id":"13","title":"Section 1 row 3 title","description":"Section 1 row 3 description"}]},{"title":"Section 2 Title","rows":[{"id":"21","title":"Section 2 row 1 title","description":"Section 2 row 1 description"},{"id":"22","title":"Section 2 row 2 title","description":"Section 2 row 2 description"},{"id":"23","title":"Section 2 row 3 title","description":"Section 2 row 3 description"}]}]}}
Sample 11: 3 sections with section titles, each with 3 rows with no descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Section titles (x3)
("title" keys)
- Row titles (x9)
("title" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"title":"Section 1 Title","rows":[{"id":"11","title":"Section 1 row 1 title"},{"id":"12","title":"Section 1 row 2 title"},{"id":"13","title":"Section 1 row 3 title"}]},{"title":"Section 2 Title","rows":[{"id":"21","title":"Section 2 row 1 title"},{"id":"22","title":"Section 2 row 2 title"},{"id":"23","title":"Section 2 row 3 title"}]},{"title":"Section 3 Title","rows":[{"id":"31","title":"Section 3 row 1 title"},{"id":"32","title":"Section 3 row 2 title"},{"id":"33","title":"Section 3 row 3 title"}]}]}}
Sample 12: 3 sections with section title, each with 3 rows with descriptions
Changes to be made to the below code snippet:
- Body text
("body" key)
- List title
("button" key)
- Section titles (x3)
("title" keys)
- Row titles (x9)
("title" keys)
- Row descriptions (x9)
("description" keys)
interactive:{"type":"list","header":{"type":"text","text":"This is the header text"},"body":"This is the body text","action":{"button":"List Title","sections":[{"title":"Section 1 Title","rows":[{"id":"11","title":"Section 1 row 1 title","description":"Section 1 row 1 description"},{"id":"12","title":"Section 1 row 2 title","description":"Section 1 row 2 description"},{"id":"13","title":"Section 1 row 3 title","description":"Section 1 row 3 description"}]},{"title":"Section 2 Title","rows":[{"id":"21","title":"Section 2 row 1 title","description":"Section 2 row 1 description"},{"id":"22","title":"Section 2 row 2 title","description":"Section 2 row 2 description"},{"id":"23","title":"Section 2 row 3 title","description":"Section 2 row 3 description"}]},{"title":"Section 3 Title","rows":[{"id":"31","title":"Section 3 row 1 title","description":"Section 3 row 1 description"},{"id":"32","title":"Section 3 row 2 title","description":"Section 3 row 2 description"},{"id":"33","title":"Section 3 row 3 title","description":"Section 3 row 3 description"}]}]}}
Updated about 1 year ago