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

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

User account details are represented as an array that includes:

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

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

© 2019 Sendserver. All rights reserved.