Gets a contact by email address with their consent information
This method retrieves a contact with their consent information in your account by using the contact's email address.
SOAP action: http://apiconnector.com/v2/ApiService/GetContactByEmailWithConsent
Input and output parameters
The input and output parameters for this method are:
Input parameters
- Email - required; string
Output parameters
- GetContactByEmailWithConsentResult
- Id - integer
- Email - string
- OptInType - string ('Unknown', 'Single', 'Double', 'VerifiedDouble')
- EmailType - string ('PlainText', 'Html')
- DataFields - optional; array of ContactData
- ContactData
- Key - string
- Value - anyType
- Status - string ('Subscribed', 'Unsubscribed', 'SoftBounced', 'HardBounced', 'IspComplained', 'MailBlocked', 'PendingOptIn', 'DirectComplaint', 'Deleted', 'SharedSuppression', 'Suppressed', 'NotAllowed', 'DomainSuppression', 'NoMxRecord')
- ConsentFields - optional; array of ConsentData
- ConsentData
- Key - string ('Text', 'DateTimeConsented', 'URL', 'IPAddress', 'UserAgent', 'DateTimeCreated')
- Value - anyType
Example
using (var client = new ApiServiceClient())
{
client.ClientCredentials.UserName.UserName = "username";
client.ClientCredentials.UserName.Password = "password";
var email = "[email protected]";
var contact = client.GetContactByEmailWithConsent(email);
}