MGAPI()

Function is used to connect Mailigen API. It is necessary to use API key as an additional parameter.

MGAPI(string $apikey, boolean $secure)
Input parametrs
apikey - Mailigen user API key secure - whether to use secure SSL connection (true, false) (optional). Default value is false.

User account details is represented as an array that includes:

PHP
require_once 'inc/MGAPI.class.php';
require_once 'inc/config.inc.php'; //contains apikey
 
$api = new MGAPI($apikey);

Python
from lib.config import * #contains apikey
from lib.MGAPI import MGAPI
 
api = MGAPI(apikey)

© 2010-2017 Mailigen. All rights reserved.