Using a UDT to perform a task after someone subscribes, only $params['email'] is available. In unsubscribe, the 'username' parameter is available.