Skip to content

Commit

Permalink
Add docs for attachments with authors
Browse files Browse the repository at this point in the history
  • Loading branch information
maknz committed Jun 3, 2015
1 parent 123c682 commit 7f21fef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f21fef

Please sign in to comment.