fix getFavorites url to work with 1.1 REST-API

I just changed the `url` in `getFavorites` to work with the 1.1 REST-API and removed some trailing whitespaces