AMPscript
Add
Attributes.Retrieve
Lists.Retrieve
Remove
Retrieve
Statistics
Unsubscribe
Update
Upsert
Validate Your Server-Side JavaScript using WSProxy
The Subscriber Server-side JavaScript functions allow you to create, update, and unsubscribe subscribers as well as retrieve information about those subscribers.
In your server-side JavaScript code, first load the core library using this syntax:
1Platform.Load("core", "1");To interact with a subscriber via server-side JavaScript, you must first initialize the object. This code initializes a subscriber with the subscriber key of mySubscriber.
1var sub = Subscriber.Init('mySubscriber');