Using TwitterOAuth to authenticate our extension

The TwitterOAuth (https://twitteroauth.com/) library provides communication with Twitter via an API. In the TweetsAbout project, this kind of communication is essential for the final proposal of our extension solution. TwitterOAuth is the most popular PHP library to use with the TwitterOAuth REST API.

This project is also available on GitHub (https://github.com/abraham/twitteroauth), as shown in the following screenshot:

Using TwitterOAuth to authenticate our extension

To install TwitterOAuth on the TweetsAbout extension, follow this recipe:

  1. Open the terminal or command prompt.
  2. Under the packt/app/code/Packt/TweetsAbout/Api directory, run the composer ...

Get Magento 2 Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.