Refactoring Twitter example to include API version in base URL