Migrate Twitter hook example to API v1.1

The Twitter REST API v1 is no longer active.
See https://dev.twitter.com/discussions/18560 for details.