Refactoring getTweets api method to use a map for properties.