-
Notifications
You must be signed in to change notification settings - Fork 17
Client specification Member
Florian Lorrain edited this page Aug 15, 2014
·
1 revision
The Member class allows you to update any information on a Member of your lists.
Because a list is represented by an Interact Object in the API, we will pass an instance of that type to the member to define the list :
list = Responsys::Api::Object::InteractObject.new("folder_name", "object_name")To get the subscribing status of a Member, just call the subscribed? method with the Interact Object.
member.subscribed?(list)Pass an instance of an Interact Object to the subscribe method. The EMAIL_PERMISSION_STATUS_ will be updated to OPTIN.
member.subscribe(list)Same thing for unsubscribing, pass an Interact Object to the unsubscribe method. The EMAIL_PERMISSION_STATUS_ will be updated to OPTOUT.
member.unsubscribe(list)