GetPreferencesForContact

Gets all preferences for the account and indicates those that a given contact is opted into

This method returns all preferences for the account and indicates those that a given contact is opted into (via the preference's 'isOptedIn' parameter displaying as 'true').

SOAP action: http://apiconnector.com/v2/ApiService/GetPreferencesForContact

πŸ“˜

Input and output parameters

Input parameters

  • ContactID - integer or ContactEmailAddress - string

Output parameters

  • GetPreferencesResult - array of Preference objects
    • Preference or Preference category
      • PreferenceID - integer
      • PublicName - string
      • PrivateName - string
      • IsPreference - boolean
      • Order - integer
      • IsPublic - boolean
      • CategoryID - integer or string ('top' or 'bottom')
      • PreferenceCount - integer
      • Created - DateTime
      • LastModified - DateTime
      • IsOptedIn - boolean

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var preferences = client.GetPreferencesForContact();
}