Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

About

SDK for Java

Resources

Releases

No releases published

Packages

No packages published

Languages