PHP code example of yr4ik / meest-express-api-v3
1. Go to this page and download the library: Download yr4ik/meest-express-api-v3 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/ */
yr4ik / meest-express-api-v3 example snippets
use MeestExpress\MeestExpress;
use MeestExpress\Filter;
$login = 'login';
$pass = 'pass';
$meest_express = new MeestExpress($login, $pass);
// Get Search api
$meest_search = $meest_express->setFormat('array')->search();
// search country
$filter = new Filter();
$filter->name = 'UKRAI%';
var_dump($meest_search->country($filter)->getResult());
// search region
$filter = new Filter();
$filter->name = 'Черн%';
$filter->country_id = 'c35b6195-4ea3-11de-8591-001d600938f8'; // Ukraine
var_dump($meest_search->region($filter)->getResult());
//search city
$filter = new Filter();
$filter->name = 'Черн%';
$filter->country_id = 'c35b6195-4ea3-11de-8591-001d600938f8'; // Ukraine
$filter->region_id = 'd15e3031-60b0-11de-be1e-0030485903e8';
var_dump($meest_search->city($filter)->getResult());
//search address
$filter = new Filter();
$filter->name = 'Черн%';
$filter->country_id = 'c35b6195-4ea3-11de-8591-001d600938f8'; // Ukraine
$filter->region_id = 'd15e3031-60b0-11de-be1e-0030485903e8';
var_dump($meest_search->city($filter)->getResult());