Adding basic oauth and api requests