Click or drag to resize
KomfoProviderRemoveEmailsFromCustomAudienceAsync Method
Removes emails from the custom audience asynchronously.

Namespace: KomfoSharp.Provider
Assembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual Task<int> RemoveEmailsFromCustomAudienceAsync(
	string accessToken,
	string customAudienceId,
	IEnumerable<string> emails,
	bool hashWithSha256 = false,
	bool isHashed = false
)

Parameters

accessToken
Type: SystemString
The access token.
customAudienceId
Type: SystemString
The custom audience identifier.
emails
Type: System.Collections.GenericIEnumerableString
The emails. If hashWithSha256 is set to true the emails have to be normalized by trimming leading and trailing whitespace and converting all characters to lowercase. Maximum 5000 entries could be sent in single call.
hashWithSha256 (Optional)
Type: SystemBoolean
if set to true the emails will be hashed by SHA256 before sending to Komfo.
isHashed (Optional)
Type: SystemBoolean
if set to true the emails are hashed already.

Return Value

Type: TaskInt32
The number of emails requested to be removed from the custom audience.

Implements

IKomfoProviderRemoveEmailsFromCustomAudienceAsync(String, String, IEnumerableString, Boolean, Boolean)
Examples
var entriesReceived = await komfoProvider.RemoveEmailsFromCustomAudienceAsync("<your_access_token>", customAudienceId, new[] { "user1@domain.com", "user2@domain.com", "user3@domain.com" });
Console.WriteLine("Entries received: {0}", entriesReceived);
See Also