| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Airline API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Automatically generated by the OpenAPI Generator
Building the API client library requires:
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>com.hopper.cloud</groupId>
<artifactId>cloud-airlines-java</artifactId>
<version>2.1.0</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
repositories {
mavenCentral() // Needed if the 'cloud-airlines-java' jar has been published to maven central.
mavenLocal() // Needed if the 'cloud-airlines-java' jar has been published to the local maven repo.
}
dependencies {
implementation "com.hopper.cloud:cloud-airlines-java:2.0.0"
}At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
Please follow the installation instruction and execute the following Java code:
// Import classes:
import com.hopper.cloud.airlines.ApiClient;
import com.hopper.cloud.airlines.ApiException;
import com.hopper.cloud.airlines.Configuration;
import com.hopper.cloud.airlines.auth.*;
import com.hopper.cloud.airlines.model.*;
import com.hopper.cloud.airlines.api.AnalyticsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://airlines-api.hopper.com/airline/v1.1");
// Configure API key authorization: SessionAuth
ApiKeyAuth SessionAuth = (ApiKeyAuth) defaultClient.getAuthentication("SessionAuth");
SessionAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SessionAuth.setApiKeyPrefix("Token");
AnalyticsApi apiInstance = new AnalyticsApi(defaultClient);
CfarEvent cfarEvent = new CfarEvent(); // CfarEvent |
try {
apiInstance.postCustomerEvents(cfarEvent);
} catch (ApiException e) {
System.err.println("Exception when calling AnalyticsApi#postCustomerEvents");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}All URIs are relative to https://airlines-api.hopper.com/airline/v1.1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AnalyticsApi | postEvents | POST /events | Send a Backend Event |
| AuthenticationApi | postAuth | POST /auth | Create an authentication token |
| CancelForAnyReasonCfarApi | getCfarContractsId | GET /cfar_contracts/{id} | Get a CFAR Contract |
| CancelForAnyReasonCfarApi | getCustomerCfarPayoutReceipt | GET /customer/cfar/payout/receipt | Get payout receipt PDF |
| CancelForAnyReasonCfarApi | postCfarContractExercises | POST /cfar_contract_exercises | Create CFAR Exercise |
| CancelForAnyReasonCfarApi | postCfarContracts | POST /cfar_contracts | Create a CFAR Contract |
| CancelForAnyReasonCfarApi | postCfarContractsIdPayment | POST /cfar_contracts/{id}/payment | Process CFAR Payment |
| CancelForAnyReasonCfarApi | postCfarOffers | POST /cfar_offers | Create CFAR Offers |
| CancelForAnyReasonCfarApi | postCfarOffersExternal | POST /cfar_offers/external | Create External CFAR Offer |
| CancelForAnyReasonCfarApi | putCfarContractExercisesIdMarkCompleted | PUT /cfar_contract_exercises/{id}/mark_completed | Complete CFAR Exercise |
| CancelForAnyReasonCfarApi | putCfarContractsIdFormsOfPayment | PUT /cfar_contracts/{id}/forms_of_payment | Update forms of payment of a CFAR Contract |
| CancelForAnyReasonCfarApi | putCfarContractsIdItinerarySlices | PUT /cfar_contracts/{id}/itinerary_slices | Update CFAR Contract Itinerary Slices |
| CancelForAnyReasonCfarApi | putCfarContractsIdUpdateStatus | PUT /cfar_contracts/{id}/update_status | Update CFAR Contract Status |
| DisruptionGuaranteeDgApi | getCustomerDgExercisesIdSession | GET /customer/dg_exercises/{id}/session | Get session ID by DG exercise ID |
| DisruptionGuaranteeDgApi | getCustomerDgPayoutReceipt | GET /customer/dg/payout/receipt | Get payout receipt PDF |
| DisruptionGuaranteeDgApi | getDgContractsId | GET /dg_contracts/{id} | Get a DG contract |
| DisruptionGuaranteeDgApi | postDgContractExercises | POST /dg_contract_exercises | Create DG Exercise |
| DisruptionGuaranteeDgApi | postDgContracts | POST /dg_contracts | Create a DG Contract |
| DisruptionGuaranteeDgApi | postDgContractsIdPayment | POST /dg_contracts/{id}/payment | Process DG payment |
| DisruptionGuaranteeDgApi | postDgOffers | POST /dg_offers | Create DG Offers |
| DisruptionGuaranteeDgApi | putDgContractsIdItinerarySlices | PUT /dg_contracts/{id}/itinerary_slices | Update DG Contract Itinerary Slices |
| DisruptionGuaranteeDgApi | putDgContractsIdUpdateStatus | PUT /dg_contracts/{id}/update_status | Update DG Contract Status |
| SessionsApi | postSessions | POST /sessions | Create a Session |
Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.
| Back | FazBrowse Home | New Git URL |