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

Add option to tweet published blog posts #243

Closed
wants to merge 1 commit into from

Conversation

GordonBeeming
Copy link
Owner

@GordonBeeming GordonBeeming commented May 24, 2024

Related to #241

This pull request introduces functionality to allow users to choose whether a blog post should be tweeted upon publication, along with the necessary backend support for Twitter integration.

  • UI Update: Adds a "Tweet this post" checkbox in the PostUpdate.razor page, enabling users to select if the blog post should be tweeted.
  • Twitter Service: Implements a new TwitterService class in Services, which handles Twitter API calls using credentials stored in appsettings.json.
  • Configuration: Updates appsettings.json to include Twitter API credentials, allowing the application to authenticate and interact with the Twitter API.
  • Tweet Logic: Integrates tweet functionality into the blog post update workflow. If the "Tweet this post" checkbox is selected, the blog post title and URL are tweeted using the newly added TwitterService.

For more details, open the Copilot Workspace session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant