Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Notifier] Add Twitter notifier #48084

Open
wants to merge 1 commit into
base: 6.2
Choose a base branch
from

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Nov 2, 2022

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.

$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 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.

@nicolas-grekas nicolas-grekas requested a review from OskarStark as a code owner Nov 2, 2022
@carsonbot carsonbot added this to the 6.2 milestone Nov 2, 2022
@nicolas-grekas nicolas-grekas modified the milestones: 6.2, 6.3 Nov 2, 2022
@symfony symfony deleted a comment from carsonbot Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants