Skip to content

Latest commit

 

History

History
105 lines (90 loc) · 3.39 KB

README.md

File metadata and controls

105 lines (90 loc) · 3.39 KB

Expedia Group Lodging Connectivity Java SDK

Designed to simplify Lodging Connectivity API integration, handles the technical complexities, empowering partners to focus on their core business needs.

With robust features and seamless integration, it enhances developer productivity, providing all necessary tools to efficiently query and mutate data from GraphQL APIs.

Key Features

  1. Pre-Built Operations for Lodging Connectivity GraphQL APIs
  2. Strongly Typed Responses
  3. Authentication & Automatic Token Renewal
  4. Logging & Sensitive Data Masking
  5. Error Handling

Installation

Make sure you have Java 8 or higher.

Gradle

// gradle.build
dependencies {
    implementation 'com.expediagroup:lodging-connectivity-sdk:1.0.6-SNAPSHOT'
}

Maven

<!-- pom.xml -->
<dependency>
    <groupId>com.expediagroup</groupId>
    <artifactId>lodging-connectivity-sdk</artifactId>
    <version>1.0.6-SNAPSHOT</version>
</dependency>

Note

The SDK is currently published as SNAPSHOT versions, so you will need to configure your build tool to pull packages from the Maven snapshots repository

Gradle

repositories {
  maven {
     url "https://oss.sonatype.org/content/repositories/snapshots/"
   }
}

Maven

<repositories>
   <repository>
       <id>sonatype-snapshots</id>
       <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
       <releases>
           <enabled>false</enabled>
       </releases>
       <snapshots>
           <enabled>true</enabled>
       </snapshots>
   </repository>
</repositories>

Quick Start

Once you have the SDK dependency installed, you can start using its capabilities. The SDK contains three different clients, each used to interact with a specific capability in Lodging Connectivity APIs.

  1. Reservation Client
  2. Payment Client
  3. Sandbox Data Management Client

Typical Usage Flow

Follow these three simple steps to start using any client in the SDK:

  1. Build the client configuration object.

    ClientConfiguration config = ClientConfiguration
            .builder()
            .key("KEY")
            .secret("SECRET")
            .build();
  2. Initialize a client.

    ReservationClient reservationClient = new ReservationClient(config); // Taking ReservationClient as an example
  3. Execute operations

    reservationClient.execute(/* GraphQL Operation */);

Documentation

The list below lists detailed documentation files for some components of the SDK. Whether you're looking to configure the SDK, explore the pre-built GraphQL operations, or learn how to use specific clients, the following resources will guide you through all the necessary steps.

  1. Reservation Client Documentation
  2. Payment Client Documentation
  3. Sandbox Data Management Client Documentation
  4. Configuration
  5. Logging
  6. Exception Handling

Related Resources