Changed api fetching method to bring it in line with updated gem