update twitter api url to v1.1

The Twitter REST API v1 is no longer active. Updated the example to use 1.1