maknz / slack

A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax.
BSD 2-Clause "Simplified" License
1.17k stars 204 forks source link

Adding author_* and thumb_url features for attachments #22

Closed drewbroadley closed 9 years ago

drewbroadley commented 9 years ago

As per attachments (https://api.slack.com/docs/attachments) you are now able to define Author related fields, and have a Thumbnail URL (close functionality to image_url, except for formatting differences).

These changes extend the Attachment model to handle author_name, author_link, author_icon and thumbnail_url

drewbroadley commented 9 years ago

Screenshot proof of this working:

screenshot 2015-06-03 14 32 12

Screenshot of tests passing:

screenshot 2015-06-03 14 48 02

maknz commented 9 years ago

Awesome Drew, thanks for this.