Don't miss out Virtual Happy Hour this Friday (April 26).
Don't miss out Virtual Happy Hour this Friday (April 26).
Version Info: This topic applies to Episerver.ConnectForMarketingAutomation 4.0.0 and lower. For later versions, see Sample Connector - IMarketingConnector.
A core element, the IProvider Service property provides service for marketing automation.
public interface IProvider
Identifies the provider. Implementation returns its unique name and it matches the name used in Views/Admin folder and the name of provider-defined in MAI.config.
string Name { get; }
Gets the current services (Campaign, Profile, Score, ...) of this marketing automation provider. API calls to 3rd services are accessed through this service.
IProviderServices Services { get; }
Gets the current settings of this marketing automation provider.
IProviderSettings Settings { get; }
Gets the URL to the provider's Dashboard, which is the starting point of using this provider's services.
string GetDashboardUrl()
Provides a user control for setting its working data (such as username, password, access token, and so on). The MAI.Core setting page automatically loads this settings control of the active provider into the AdminMode/Config/Connect of the marketing automation page.
string GetSettingsControlPath()
Gets the Web Tracking Code to inject into the ViewMode's page.
string GetWebTrackingCode()
Initialize the Provider with its services. Use Init to use StructureMap to provide "sp.For<IListService>().Use<ListService>()" commands.
void Init(
ServiceConfigurationContext serviceConfigurationContext
)
Parameters.
Indicates that this provider is ready to work.
bool IsReady()
Implement this method to handle XFormData posting, from both MVC or WebForm app. You can use this as a main point to bring XForm data to the marketing automation service.
void ProcessXFormData(
Object sender,
XFormDataEventArgs e
)
Verify whether a mailing template is waiting to be published, and send to provider.
string SynchronizeMailingTemplates()
Last updated: Dec 10, 2015