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.

  1. User clicks on "connect" button
  2. They are redirected to X where they authorize the app
  3. They are redirected back to DevJourney with the code
  4. DevJourney takes the code, sends it to X and exchanges it for a token
  5. DevJourney encrypts the access token and saves it in the db
  6. DevJourney can now make requests on behalf of the user using the token

Too tired to implement it now, but it seems simple enough.