-
Notifications
You must be signed in to change notification settings - Fork 30
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
Angela - Twitter Poster #1156
Open
angelalalacheng
wants to merge
14
commits into
development
Choose a base branch
from
Angela_Twitter_poster
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Angela - Twitter Poster #1156
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angelalalacheng
added
Do Not Review
Do not review or look at code without full context
DO NOT MERGE
Don't merge PR
labels
Nov 18, 2024
one-community
added
the
Needs New Developer
This is a PR that is partially developed but needs someone new to take it over and finish it.
label
Nov 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
DO NOT MERGE
Don't merge PR
Do Not Review
Do not review or look at code without full context
Needs New Developer
This is a PR that is partially developed but needs someone new to take it over and finish it.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds API endpoints for posting content on Twitter, enabling image extraction and posting capabilities (note: scheduling is not included in this PR). Currently, there are no related frontend PRs, as frontend development for these features is still in progress. Once the frontend is ready, these APIs will be integrated to complete the functionality.
Main changes explained:
socialMediaController.js
:• Extract text and image URLs or base64 content from content.
• Post tweets with optional media content to Twitter using createTweet.
• Handle token retrieval for Twitter OAuth authentication.
socialMediaRouter.js
: Defines routes to handle Twitter API interactions, including posting images and obtaining access tokens.routes.js
: Integrated the new socialMediaRouter within the main app router configuration to expose the new API endpoints.How to test:
npm install
andnpm run dev
to run this PR locallyScreenshots or videos of changes (Just temporary UI):
https://www.loom.com/share/e41dadeae7334dc9a20a1adff8b4b3fc?sid=ef77017e-d178-44b7-ba45-9d2105576708
Note:
Twitter: