Twitter may have changed their authentication logic since those blogs were written.
The current Authentication process is described here.
As this authentication scheme is Twitter specific , you would need to create a Custom Authentication Handler and apply this to the REST API Modular Input stanza you are setting up. The Twitter docs are very comprehensive for the logic require to implement this Authentication logic.
A related answer for custom authentication handlers is mentioned here.
... View more