X Integration Research
Today I'll continue with the content pipeline.
Next step is posting to X and LinkedIn through DevJourney. For that, I need to integrate with X and LinkedIn. I've never done that before, so this is going to be interesting.
I did some research, and it seems to be a simple OAuth 2.0 flow.
- User clicks on "connect" button
- They are redirected to X where they authorize the app
- They are redirected back to DevJourney with the code
- DevJourney takes the code, sends it to X and exchanges it for a token
- DevJourney encrypts the access token and saves it in the db
- DevJourney can now make requests on behalf of the user using the token
Too tired to implement it now, but it seems simple enough.