setting up framework for twitter rest api requests