Move http call into service.