Exemplo n.º 1
0
 /**
  * Initialize a MercadoLibre Application.
  *
  * The configuration:
  * - countryId: the country ID
  * - appId: the application ID
  * - secret: the application secret
  *
  * @param array $config The application configuration
  */
 public function __construct($config)
 {
     if (isset($config['mockUrl'])) {
         self::$API_DOMAIN = $config['mockUrl'];
         self::$IS_MOCK = true;
     }
     $this->setAppId($config['appId']);
     $this->setAppSecret($config['secret']);
     $this->initApp($config['appId']);
 }