I would like to create a Spring Boot webapp (Twitter client) that is able to connect to multiple twitter accounts and post tweets on their behalf. It should be an API + one SPA.
After two days, I am suffering from acute tutorial dizziness and have advanced very little. I am trying to follow Spring Social Twitter Reference, but it does not explain how to get, store or update the accessToken.
This is how I imagine the overall process (but it is probably deeply flawed):
- The SPA (frontend) gets an
accessToken and an accessTokenSecret to the user’s twitter account through a direct call to twitters API (popup window? I don’t know yet how to do this).
- It then sends both to the backend (using HTTPS), who stores them in a database (Encrypted).
- Then the backend can start sending tweets on behalf of the users by using the
accessToken and accessTokenSecret of each user.
If the above is wrong, which would be the correct process?