You need a consumer key and secret to test the sample code. Get one from dev.twitter.com/apps