Added code to get api data from pocket