Use https not http for api