libcvrapi/README.md

31 lines
722 B
Markdown
Raw Normal View History

2019-08-16 10:59:42 +00:00
# libcvrapi
2019-08-17 17:53:11 +00:00
-----------------------------------
2019-10-22 19:12:44 +00:00
A Java library to query <https://www.cvrapi.dk> (a Danish VAT API service). Work in progress.
2019-08-17 17:53:11 +00:00
## Usage
CvrApi api = new CvrApi("My user agent", "mySecretToken");
Company company = api.getCompanyByVatNumber("57020415");
System.out.println(company.life.name);
The *Company* represents most of the same properties as seen in the example JSON in the [api documentation](http://docs.rest.cvrapi.dk/).
### Gradle
repositories {
2019-08-19 18:58:01 +00:00
maven { url 'https://dl.bintray.com/mnellemann/libs' }
2019-08-17 17:53:11 +00:00
}
dependencies {
2019-08-19 18:58:01 +00:00
compile 'biz.nellemann.libs:libcvrapi:1.+'
2019-08-17 17:53:11 +00:00
}
## Development
To build and test the code:
./gradle build
./gradle test