Since the retirement of version 1.0 of Twitter’s API is underway, I’ve been updating the Twitter integration code in the Techozoic Fluid theme. I don’t agree with all the changes to the API, especially the requirement that all API requests, even for public info, must be signed. Luckily someone has already done the hard work creating a library for signing the requests with the proper oAuth signatures. The tmhOAuth library can be found on Github. It will be required for the new functions.
The first step is to register a new Twitter application. After signing into Twitter visit the Applications area of Twitter, and create a new application. After creating the application make sure create the access token at the bottom of the Application screen, this will authorize the application to access your account. You will now need 4 separate keys to properly sign the API requests. You’ll need the Consumer key, Consumer secret, Access token, and Access token secret. These will be added to an array and passed to the function and in turn passed to the oAuth library to sign the request.
These two functions below can be used to pull your Twitter timeline and automatically convert all links, hashtags, usernames, and media to the proper format using entities. The same function can also be used to pull a follower count. Examples of how to use are included in the code below.

By Simple WordPress Twitter follower count snippet | Jeremy Clark - TechNet.com March 7, 2013 - 2:43 pm
[...] Updated version for API v1.1 Following on the idea from this post, sometimes a full-blown Twitter plugin is too much. Luckily Twitter has a rich API that is ripe for the taking of information. The API console is of great use to find how to properly format the API requests. This code below will output the number of followers specified by the username passed to the function wrapped in a link to the page that allows the visitor to easily follow the user. [...]