Update for API v1.4 and HTTPS authentication