| IKomfoProviderRetrieveCampaignsAsync Method |
Retrieves the campaigns asynchronously.
Namespace: KomfoSharp.ProviderAssembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxTask<IEnumerable<Campaign>> RetrieveCampaignsAsync(
string accessToken
)
Parameters
- accessToken
- Type: SystemString
The access token.
Return Value
Type:
TaskIEnumerableCampaignThe campaigns list. If no campaigns are retrieved an empty list is returned.
Examplesvar campaigns = await komfoProvider.RetrieveCampaignsAsync("<your_access_token>");
foreach (var campaign in campaigns)
{
this.ShowCampaign(campaign);
}
See Also