PHP code example of artack / mx-api-bundle
1. Go to this page and download the library: Download artack/mx-api-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
artack / mx-api-bundle example snippets
bash
$ php composer.phar update artack/mx-api-bundle
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Artack\MxApiBundle\ArtackMxApiBundle(),
// ...
);
}
php
/* @var $mxapi \Artack\MxApi\ArtackMxApi */
$mxapi = $this->get('artack.mxapi');
$response = $mxapi->setPath('Contact')->get();