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 #242

Closed
wants to merge 1 commit into from

Conversation

GordonBeeming
Copy link
Owner

@GordonBeeming GordonBeeming commented May 23, 2024

Related to #241

This pull request introduces the functionality to tweet a blog post upon publishing, providing the user with the option to do so through a new checkbox in the blog post update form.

  • Adds a checkbox in src/GordonBeemingCom.Editor/Pages/PostUpdate.razor for users to select if they want to tweet the blog post upon publishing.
  • Implements Twitter integration by adding Twitter API configuration settings (ApiKey, ApiSecretKey, AccessToken, and AccessTokenSecret) in src/GordonBeemingCom.Editor/appsettings.json.
  • Creates a new service, TwitterService, in src/GordonBeemingCom.Editor/Services/TwitterService.cs to handle Twitter API calls. This service includes a method to post tweets, which is called based on the state of the newly added "Tweet this post" checkbox.

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