Skip to content
SDK for Java
Branch: master
Clone or download
ups
Latest commit f93dfc0 May 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo/sdk-java-use-example add demo sdk-java-use-example May 16, 2019
src/main/java/ca/tourism/platform/sdk fix on CountryProvider May 16, 2019
.gitignore add demo sdk-java-use-example May 16, 2019
README.adoc Update readme May 14, 2019
pom.xml Add SDKs May 14, 2019

README.adoc

Arawaks Java SDK

This SDK provides functionalities to establish communication with the different APIs published in the address https://api.opencaribbean.org

Installation and Getting Started

mvn clean
mvn install
  • Use as dependency in Java projects:

<dependency>
	<groupId>ca.tourism.platform</groupId>
	<artifactId>arawaks-sdk</artifactId>
	<version>0.0.1</version>
</dependency>

Available classes

  • BookableProvider

  • BookingProvider

  • ClaimProvider

  • CountryProvider

  • LocationProvider

  • MailSenderProvider

  • ResourceProvider

  • ReviewsProvider

  • StatsProvider

Example and use

public class Run {

	public static void main(String[] args) {
		CountryProvider countryProvider = new CountryProvider("secretToken*") ;
		Country country = new Country("countryName", "CN", "capitalName", new LinkedList<String>(), 0.0, 0.0) ;
		try {

			// POST example
			Country response = countryProvider.createCountry(country) ;
			System.out.println(response.toString());

		} catch (HttpException e) {
			System.out.println("[ERROR] - " + e.getMessage());
		}
	}
}
Note
The secretToken* is empty for the moment.
You can’t perform that action at this time.