GetModifiedPreferencesOptInsByAddressBook

Gets the top 1000 contacts who have had a specific preference opt-in status modified since a given date, in a given address book

This method retrieves an array of up to 1000 contacts from a specific address book who have had their specified preference opt-in status modified since a given date.

If no contacts are subscribed to the given preference, an empty array is returned. Otherwise an array containing 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/GetModifiedPreferencesOptInsByAddressBook

📘

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.GetModifiedPreferencesOptInsByAddressBookAsync(bookId: 2, sinceDate: DateTime.UtcNow.AddDays(-1), preferenceId: 1, minContactId: 0);
}