Skip to content

Feat/twitter v2 integration #2367

Fausto Arcidiacono requested to merge feat/twitter-v2-integration-2367 into master

Ticket(s) / Related Merge Requests

#2367 (closed)

Summary of Changes

Integrated with Twitter API v2 via OAuth2 authentication and created endpoint to post a tweet.

Testing Considerations

  1. Import Engine.postman_collection.json into Postman
  2. Import Local_Minds.com.postman_environment.json into Postman
  3. Once you have imported the collection and the environment files into Postman, proceed to update the values in the environment to the values available in the target env (e.g. sandbox, localhost, ...)

When the above steps have been completed you can start testing the new feature:

  1. Use the authenticate request in the collection to authenticate with the user provided in the environment.

    (N.B. You will most likely have to update the X-XSRF-TOKEN header to match the value of the XSRF-TOKEN cookie after you perform the request the first time as the cookie will be refreshed)

  2. Update the X-XSRF-TOKEN header in the request to get the OAuth authorization code from twitter and send the request. The response of this request, if successful, should give you a link to follow in order to authorize the test Minds app to access your authenticated Twitter account.

  3. If everything has been successful until this point, you are ready to test the Post Tweet endpoint. As above, first update the X-XSRF-TOKEN header in the request, update the tweet text in the body of the request and hit send. A 200 OK status will indicate that everything was successful and the tweet should be visible in the linked account on Twitter.

Deployment Considerations

Regression Scope

N.A

Platform Affected (web, mobile, etc)

Engine

Developer Testing Completed

Screenshots / Screen Recording

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode

Definition of Done Checklist

  • The Acceptance Criteria has been met
  • Code is tested: Testing includes unit/spec, E2E/automated and manual testing
  • Merge requests description has been filled out
Edited by Fausto Arcidiacono

Merge request reports