DaData

Java library for DaData.Ru REST API

License

License

Categories

Categories

Data
GroupId

GroupId

ru.leon0399
ArtifactId

ArtifactId

dadata
Last Version

Last Version

0.8.0
Release Date

Release Date

Type

Type

jar
Description

Description

DaData
Java library for DaData.Ru REST API
Project URL

Project URL

https://github.com/leon0399/dadata
Source Code Management

Source Code Management

https://github.com/leon0399/dadata

Download dadata

How to add to project

<!-- https://jarcasting.com/artifacts/ru.leon0399/dadata/ -->
<dependency>
    <groupId>ru.leon0399</groupId>
    <artifactId>dadata</artifactId>
    <version>0.8.0</version>
</dependency>
// https://jarcasting.com/artifacts/ru.leon0399/dadata/
implementation 'ru.leon0399:dadata:0.8.0'
// https://jarcasting.com/artifacts/ru.leon0399/dadata/
implementation ("ru.leon0399:dadata:0.8.0")
'ru.leon0399:dadata:jar:0.8.0'
<dependency org="ru.leon0399" name="dadata" rev="0.8.0">
  <artifact name="dadata" type="jar" />
</dependency>
@Grapes(
@Grab(group='ru.leon0399', module='dadata', version='0.8.0')
)
libraryDependencies += "ru.leon0399" % "dadata" % "0.8.0"
[ru.leon0399/dadata "0.8.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.logging.log4j : log4j-core jar 2.6
com.google.code.gson : gson jar 2.6.2
commons-io : commons-io jar 2.5

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

DaData Java API GitHub version Build Status Coverage Status

Java library for DaData.Ru REST API

API documentation

Installation

<dependency>
    <groupId>ru.leon0399</groupId>
    <artifactId>dadata</artifactId>
    <version>0.8.0</version>
</dependency>

Usage

DaData dadata = DaData daData = new DaData(">YOUR API KEY<", ">YOUR SECRET KEY<");

Clean

Address address = daData.cleanAddress("мск сухонска 11/-89");
Phone phone = daData.cleanPhone("тел 7165219 доб139");
Passport passport = daData.cleanPassport("4509 235857");
Name name = daData.cleanName("Срегей владимерович иванов");
Email email = daData.cleanEmail("serega@yandex/ru");
Birthdate birthdate = daData.cleanBirthdate("24/3/12");
Vehicle vehicle = daData.cleanVehicle("форд фокус");

Require balance

daData.getBalance();

License

The MIT License (MIT)

Copyright (c) 2016 Leonid Meleshin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Versions

Version
0.8.0