Feat/twitter v2 integration #2367
Ticket(s) / Related Merge Requests
Summary of Changes
Integrated with Twitter API v2 via OAuth2 authentication and created endpoint to post a tweet.
Testing Considerations
- Import Engine.postman_collection.json into Postman
- Import Local_Minds.com.postman_environment.json into Postman
- 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:
-
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 theXSRF-TOKEN
cookie after you perform the request the first time as the cookie will be refreshed) -
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. -
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. A200 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