A Java client API for http://currencylayer.com written in kotlin
A simple API for querying currency rate related information from currencylayer.com. It offers both blocking and asynchronous calls. The library provides types for the different responses.
Include it as a dependency:
repositories {
jcenter()
maven { url "http://dl.bintray.com/helmethair-co/helmethair-co-oss" }
}
dependencies {
compile 'co.helmethair:currency-layer-api:<latest-version>'
}
To use it in Java:
CurrencyLayerApi currencyLayerApi = new CurrencyLayerApi("<your-access-key>", true);
ListResponse listResponse = currencyLayerApi.list();
listResponse.getCurrencies();
To use it in kotlin:
val currencyLayerApi = CurrencyLayerApi("<your-access-key>", true)
val listResponse = currencyLayerApi.list()
listResponse.getCurrencies()
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need to have a recent version of Java installed (8 and above).
git clone [email protected]:helmethair-co/currency-layer-api.git
./gradlew test
- kotlin - Statically typed programming language for modern multiplatform applications
- gradle - Build tool
- jackson - Serialization / deserialization
- fuel - Http networking
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning.
- Mark Vujevits - Initial work - helmethair.co
See also the list of contributors who participated in this project.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details