I'd like call the Get Calendar method from a Javascript AJAX request in my application and return a JSON response of the calendar data. Is there a way to make a request to get a token with username & password and then use that with the mode auth=qp & zauthtoken? Conversely, if there is an auth method I am missing where I could just use username and password but that does not seem to work either.

I'm getting a 401 error saying I must authenticate. I am sending user and password along with the request in the traditional XmlHttpRequest object way. This is not from a browser however, so I am not receiving cross domain browser errors.