Skip to content

Instantly share code, notes, and snippets.

@shamangeorge
Created May 6, 2017 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shamangeorge/bf3119c38d51eeed94f22163e5f1365e to your computer and use it in GitHub Desktop.
Save shamangeorge/bf3119c38d51eeed94f22163e5f1365e to your computer and use it in GitHub Desktop.
Matter example hook data
{
"attachments": [
{
"fallback": "test",
"color": "#FF8000",
"pretext": "This is optional pretext that shows above the attachment.",
"text": "This is the text of the attachment. It should appear just above an image of the Mattermost logo. The left border of the attachment should be colored orange, and below the image it should include additional fields that are formatted in columns. At the top of the attachment, there should be an author name followed by a bolded title. Both the author name and the title should be hyperlinks.",
"author_name": "Mattermost",
"author_icon": "http://www.mattermost.org/wp-content/uploads/2016/04/icon_WS.png",
"author_link": "http://www.mattermost.org/",
"title": "Example Attachment",
"title_link": "http://docs.mattermost.com/developer/message-attachments.html",
"fields": [
{
"short": false,
"title":"Long Field",
"value":"Testing with a very long piece of text that will take up the whole width of the table. And then some more text to make it extra long."
},
{
"short":true,
"title":"Column One",
"value":"Testing"
},
{
"short":true,
"title":"Column Two",
"value":"Testing"
},
{
"short":false,
"title":"Another Field",
"value":"Testing"
}
],
"image_url": "http://www.mattermost.org/wp-content/uploads/2016/03/logoHorizontal_WS.png"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment