code: func Login(email, passwd, apikey string) (*Conn, error) {
  	c := &Conn{}
  	var out loginResult
  	if err := c.do("smugmug.login.withPassword", &out, "APIKey", apikey, "EmailAddress", email, "Password", passwd); err != nil {
  		return nil, err
  	}
  
  	c.sessid = out.Login.Session.ID
  	if c.sessid == "" {
  		return nil, fmt.Errorf("SmugMug login appeared to succeed but did not return session ID")
  	}
  
  	c.NickName = out.Login.User.NickName
  	if c.NickName == "" {
  		return nil, fmt.Errorf("SmugMug login appeared to succeed but did not return User NickName")
  	}
  
  	return c, nil
  }
docs: // Login logs into the SmugMug server with the given email address and password.
  // The apikey argument is the API Key for your application.
  // To obtain an API Key, see http://www.smugmug.com/hack/apikeys.