Function is used to connect API. It is necessary to use API key as an additional parameter.
User account details are 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)