Skip to content

v3.0.1

Latest

Choose a tag to compare

@iDeaDe iDeaDe released this 26 May 08:10
405610f
  • В пути к методам теперь сохраняется path из url, указанного при создании объекта. Пример:
$client = \ApiDQ\Factory\SimpleClientFactory::createClient('https://proxy.example.com/apidq/', 'apiKey', 'apiSecret');

$client
    ->address
    ->clean(
        (new CleanRequest())
            ->setCountryCode('RU')
            ->setQuery('санкт-петербург козлова 30')
    );

// Запрос уйдёт на https://proxy.example.com/apidq/v1/clean/address
// ранее он ушёл бы на https://proxy.example.com/v1/clean/address