Ion-refresher

In the ionic docs for the ionrefresher they say to use $http.get(…).success(…). But I use states in my Ionic app, which makes $http unusable, I get 404’s all the time. When I try replace it with $state console returns $state.get(...).success is not a function. So how do I use the refresher with states?