Click or drag to resize
IKomfoProviderRetrieveCustomAudiencesAsync Method (String)
Retrieves the custom audiences asynchronously.

Namespace: KomfoSharp.Provider
Assembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Task<IEnumerable<CustomAudience>> RetrieveCustomAudiencesAsync(
	string accessToken
)

Parameters

accessToken
Type: SystemString
The access token.

Return Value

Type: TaskIEnumerableCustomAudience
The custom audiences list. If no custom audiences are retrieved an empty list is returned.
Examples
var customAudiences = await komfoProvider.RetrieveCustomAudiencesAsync("<your_access_token>");
foreach (var customAudience in customAudiences)
{
  this.ShowCustomAudience(customAudience);
}
See Also