truth4oll/dadata-api

dev-master 2015-10-10 09:54 UTC

This package is not auto-updated.

Last update: 2024-05-21 01:40:44 UTC


README

Dadata.ru API client based on HTTP Client Extension for Yii 2.

How to use

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.

Data clean

$response = $client->cleanAddress('< address >');

Installing

This project can be installed using Composer. Add the following to your composer.json:

{
    "require": {
        "truth4oll/dadata-api": "dev-master"
    }
}

Links