update api client to use ssl url