rename $host to $uri because that's what it is
pass $email and $password into login()
formatting fixes
rename http_request_curl() to http()