Updated api to use https