| IKomfoProviderAddEmailsToCustomAudienceAsync Method |
Adds emails to the custom audience asynchronously.
Namespace: KomfoSharp.ProviderAssembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxTask<int> AddEmailsToCustomAudienceAsync(
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 added to the custom audience.
Examplesvar entriesReceived = await komfoProvider.AddEmailsToCustomAudienceAsync("<your_access_token>", customAudienceId, new[] { "user1@domain.com", "user2@domain.com", "user3@domain.com" });
Console.WriteLine("Entries received: {0}", entriesReceived);
See Also