Dadata.ru API client based on HTTP Client Extension for Yii 2.
Add this code into your project. Use yours token
and secret
provided by dadata.ru
$client = new DadataClient(
[
'token' => token,
'secret' => secret,
]
);
Now client is ready to use.
$response = $client->cleanAddress('< address >');
This project can be installed using Composer. Add the following to your composer.json:
{
"require": {
"truth4oll/dadata-api": "dev-master"
}
}