Created
August 26, 2017 05:01
-
-
Save grokify/5bab38f9dd668f3448298f177e77feac to your computer and use it in GitHub Desktop.
Glip post attachment examples
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
{ | |
"icon": "https://example.com/post_icon.png", | |
"title": "**Title of the post**", | |
"body": "Body of the post", | |
"attachments": [ | |
{ | |
"color": "#00ff2a", | |
"pretext": "Attachment pretext appears before the attachment block", | |
"author_name": "Author Name", | |
"author_link": "https://example.com/author_link", | |
"author_icon": "https://example.com/author_icon.png", | |
"title": "Attachment Title", | |
"title_link": "https://example.com/title_link", | |
"fields": [ | |
{ | |
"title": "Field 1", | |
"value": "A short field", | |
"short": true | |
}, | |
{ | |
"title": "Field 2", | |
"value": "[A linked short field](https://example.com)", | |
"short": true | |
}, | |
{ | |
"title": "Field 3", | |
"value": "A long, full-width field with *formatting* and [a link](https://example.com)" | |
} | |
], | |
"text": "Attachment text", | |
"image_url": "https://example.com/congrats.gif", | |
"footer": "Attachment footer and timestamp", | |
"footer_icon": "https://example.com/footer_icon.png", | |
"ts": 1503723350 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment