Every time a plugin script is run, regardless of whether it is a channel or application plugin, it will receive a single command-line parameter, the path of a Windows INI file that contains information about what the plugin is being asked to do.
This is a list of the parameters present in this INI file:
[System]
Command= // Plugin command ("GenerateMainPage" or "ProcessRequest").
PluginRequest= // Plugin request (for "ProcessRequest" commands).
ParamString= // Plugin request parameters (for "ProcessRequest" commands).
AppServerUrl= // URL stem for requests to be sent to Awasu.
AppPluginServerUrl= // URL stem for requests to be sent to a plugin.
UserName= // Current user's logon name.
UserConfigFile= // Location of the user's config file.
ChannelConfigFile= // Location of the channel's config file. This will be set if
// the plugin is being called to generate a channel's feed.
DownloadUrlFile= // If the plugin requested Awasu download a file for it (because it has a DownloadUrl
// parameter defined, this will contain the path to the downloaded file.
ChannelsDir= // Location of the user's channel config files.
AppPluginsDir= // Location of the application plugin directory.
VersionString= // Awasu version string.
[PluginParameters]
... // One entry for each global parameter defined by the plugin in the format name=value.
[ChannelParameters]
... // One entry for each per-channel parameter defined by the plugin in the format name=value.