Update readme and test build pipeline.
This commit is contained in:
parent
054322385b
commit
063f0d9e60
|
@ -4,11 +4,15 @@
|
||||||
|
|
||||||
A Java library to query <https://www.cvrapi.dk> (a Danish VAT API service).
|
A Java library to query <https://www.cvrapi.dk> (a Danish VAT API service).
|
||||||
|
|
||||||
|
[![Build Status](https://drone.data.coop/api/badges/nellemann/libcvrapi/status.svg)](https://drone.data.coop/nellemann/libcvrapi)
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
||||||
|
```java
|
||||||
CvrApi api = new CvrApi("My user agent", "mySecretToken");
|
CvrApi api = new CvrApi("My user agent", "mySecretToken");
|
||||||
Company company = api.getCompanyByVatNumber("57020415");
|
Company company = api.getCompanyByVatNumber("57020415");
|
||||||
System.out.println(company.life.name);
|
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/).
|
The *Company* represents most of the same properties as seen in the example JSON in the [api documentation](http://docs.rest.cvrapi.dk/).
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue