1. Go to this page and download the library: Download chronon/ymlp 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/ */
utility($method, $data = array())
/**
* A utility method to send anything to the YMLP API
*
* @param string $method The YMLP API method call
* @param array $data Data to pass to the YMLP method
* @return string
* @access public
*/
command($method, $data)
/**
* The primary method to format data, post it to the YMLP API, and then format
* the returned result.
*
* @param string $method The YMLP API method call
* @param array $data Data to pass to the YMLP method
* @return string
* @access public
*/
public function utility() {
$result = $this->Ymlp->utility('Fields.GetList');
debug($result);
exit;
}