Click or drag to resize
IKomfoProviderRetrieveCampaignsAsync Method
Retrieves the campaigns asynchronously.

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

Parameters

accessToken
Type: SystemString
The access token.

Return Value

Type: TaskIEnumerableCampaign
The campaigns list. If no campaigns are retrieved an empty list is returned.
Examples
var campaigns = await komfoProvider.RetrieveCampaignsAsync("<your_access_token>");
foreach (var campaign in campaigns)
{
  this.ShowCampaign(campaign);
}
See Also