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.
Mark Nellemann
75f158a164
All checks were successful
continuous-integration/drone/push Build is passing
|
||
---|---|---|
gradle | ||
src | ||
.drone.yml | ||
.editorconfig | ||
.gitignore | ||
bitbucket-pipelines.yml | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
README.md |
libcvrapi
A Java library to query https://www.cvrapi.dk (a Danish VAT API service).
Usage
Lookup company by CVR number:
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://git.data.coop/api/packages/nellemann/maven' }
}
dependencies {
compile 'biz.nellemann.libs:libcvrapi:1.+'
}
Development
To build and test the code:
./gradle build
./gradle test