use injector to get resource client