I'm trying to create a cloud page that will unsubscribe someone from a publication list if they click the link. I do not want to change their status in All Subscribers, and I don't need to include any tracking information about the job. Based on the documentation, this code should simply change the status of my test subscriber from "Active" to "Unsubscribed", but it won't work. If I try to write the status, it just says "error". What am I missing??
<script runat="server">
Platform.Load("core", "1");
var subkey64 = Request.GetQueryStringParameter("s");
var subkey = Platform.Function.Base64Decode(subkey64);
var pubList = List.Init("1234");
var status = pubList.Subscribers.Unsubscribe(subkey);
</script>