That is a streaming API endpoint and not a code example. It will deliver 1% of the public Tweets in the Firehose when accessed. We recently turned off the ability to sign in with a username and password for this endpoint - you’ll need to use a client library which supports OAuth and Twitter’s streaming API (you may find one which works for you here: https://dev.twitter.com/docs/twitter-libraries)