Commit 191f388
committed
feature #48084 [Notifier] Add Twitter notifier (nicolas-grekas)
This PR was merged into the 6.3 branch.
Discussion
----------
[Notifier] Add Twitter notifier
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
Let's make it easy to tweet from Symfony apps.
```php
$tweet = new ChatMessage('Hello World', (new TwitterOptions())
->attachImage(new File('/path/to/image.jpg'), 'Alt text for the image')
);
$chatter->send($tweet->transport('twitter'));
```
The `TwitterOptions` class supports all options from [`/2/tweets`](https://developer.twitter.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/post-tweets) and also supports adding alt text to images and subtitles to videos, all this using async uploads.
`TwitterTransport::request()` is also exposed as public API to make authenticated requests to any other API endpoints.
Commits
-------
a9d621cca9 [Notifier] Add Twitter notifierFile tree
2 files changed
+7
-0
lines changed- DependencyInjection
- Resources/config
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
2594 | 2595 | | |
2595 | 2596 | | |
2596 | 2597 | | |
| 2598 | + | |
2597 | 2599 | | |
2598 | 2600 | | |
2599 | 2601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
| |||
0 commit comments