add method for retrieving resources from API