Refactored getPublicTimeline to use getTweets