Contact_Set_Subscriptions

Contact_Set_Subscriptions( string keystring emailarraylistIdsoptional struct optionalParameters)
 

Note: When using one of the API wrappers, you do not need to pass the API key. The wrapper will pass the key for you, your first parameter should be the second parameter in the signature.

Description

Unsubscribe a contact from all lists, then subscribe the contact to the specified lists. After this function is finished, the contact will only be subscribed to the lists specified in listIds.

Parameters

  string key Your API key - used to authenticate your account
  string email The email address of the contact you wish to set the subscriptions of
  array listIds An array of listIds the contact should be subscribed to and unsubscribed from all others
optional struct optionalParameters A struct of optional parameters, see below for valid keys

optionalParameters can include:

int campaignId The ID of the campaign tied to this subscription action

Return

array An array of all the lists the contact is subscribed to after the operation, should have the same values as listIds
 

Still need help? Contact Us Contact Us