Support to set API and OAuth host.