From 7f21fefc70c76b304adc1b3a780c8740dfcfb595 Mon Sep 17 00:00:00 2001 From: Regan McEntyre Date: Wed, 3 Jun 2015 15:35:16 +1200 Subject: [PATCH] Add docs for attachments with authors --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 3ee6fbb..dd14e20 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,18 @@ $client->to('#operations')->attach([ ])->send('New alert from the monitoring system'); ``` +#### Send an attachment with an author + +```php +$client->to('@regan')->attach([ + 'fallback' => 'Things are looking good', + 'text' => 'Things are looking good', + 'author_name' => 'Bobby Tables', + 'author_link' => 'http://flickr.com/bobby/', + 'author_url' => 'http://flickr.com/icons/bobby.jpg' +])->send('New alert from the monitoring system'); +``` + ## Advanced usage ### Explicit message creation