change api url to use ssl