GetModifiedPreferenceOptIns

Gets the top 1000 contacts who have had their specified preference opt-in status modified since a given date

This method returns an array of up to 1000 contacts who have had their given preference subscription modified since a given date.

If no contacts are subscribed to the given preference, an empty array is returned. Otherwise an array, which contains contact objects is returned.

🚧

Preference categories

Results are returned only for preferences, not preference categories.

If you specify the ID of a preference category in the path parameter, an empty array will always be returned.

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

πŸ“˜

Input and output parameters

Input parameters

  • PreferenceID - required; integer
  • MinContactID - integer

Output parameters

  • GetContactsWithPreferenceResult - Array of Contacts
    • Contact
      • ID - Integer
      • Email - string

Example

using (var proxy = new ApiServiceClient())
{
    proxy.ClientCredentials.UserName.UserName = "username";
    proxy.ClientCredentials.UserName.Password = "password";
    var result = await proxy.GetModifiedPreferencesOptInsAsync(sinceDate: DateTime.UtcNow.AddDays(-1), preferenceId: 1, minContactId: 0);
}