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
Mark Nellemann 0fc5ebec08 Update build pipeline. 2019-08-19 11:43:07 +02:00
gradle/wrapper Initial work. 2019-08-17 19:53:11 +02:00
src Added more fields and license headers. 2019-08-19 10:00:01 +02:00
.editorconfig Update build pipeline. 2019-08-19 11:43:07 +02:00
.gitignore Initial work. 2019-08-17 19:53:11 +02:00
README.md 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 Update dependencies in build config 2019-08-19 10:49:53 +02:00
gradle.properties Update dependencies in build config 2019-08-19 10:49:53 +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

libcvrapi


A Java library to query with the Danish VAT API service https://www.cvrapi.dk. 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.0.0'
    runtime "org.slf4j:slf4j-simple:1.7.25"
}

Development

To build and test the code:

./gradle build
./gradle test