Function is used to connect Mailigen API. It is necessary to use API key as an additional parameter.
MGAPI(string $apikey, boolean $secure)
User account details is represented as an array that includes:
require_once 'inc/MGAPI.class.php'; require_once 'inc/config.inc.php'; //contains apikey $api = new MGAPI($apikey);
from lib.config import * #contains apikey from lib.MGAPI import MGAPI api = MGAPI(apikey)