Open source Java library to query the unofficial Danish VAT API service https://www.cvrapi.dk. You need to buy access and get an authorization token before you can use this library.
Go to file
2019-10-25 15:00:29 +00:00
gradle Code coverage w. JaCoCo. 2019-08-23 08:18:13 +02:00
src Merged in improvements (pull request #1) 2019-10-25 15:00:29 +00:00
.editorconfig Update build pipeline. 2019-08-19 11:43:07 +02:00
.gitignore Initial work. 2019-08-17 19:53:11 +02:00
bitbucket-pipelines.yml Update build pipeline. 2019-08-19 11:43:07 +02:00
build.gradle Changed to java-api type 2019-10-25 16:45:17 +02:00
gradle.properties Changed to java-api type 2019-10-25 16:45:17 +02:00
gradlew Initial work. 2019-08-17 19:53:11 +02:00
gradlew.bat Initial work. 2019-08-17 19:53:11 +02:00
README.md Last changes 2019-10-22 21:12:44 +02:00

libcvrapi


A Java library to query https://www.cvrapi.dk (a Danish VAT API service). Work in progress.

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.

Gradle

repositories {
    maven { url 'https://dl.bintray.com/mnellemann/libs' }
}

dependencies {
    compile 'biz.nellemann.libs:libcvrapi:1.+'
}

Development

To build and test the code:

./gradle build
./gradle test