net3000.amadeus 1.0.0

dotnet add package net3000.amadeus --version 1.0.0
                    
NuGet\Install-Package net3000.amadeus -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="net3000.amadeus" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="net3000.amadeus" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="net3000.amadeus" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add net3000.amadeus --version 1.0.0
                    
#r "nuget: net3000.amadeus, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package net3000.amadeus@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=net3000.amadeus&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=net3000.amadeus&version=1.0.0
                    
Install as a Cake Tool

Net3000.Amadeus

Overview

The Net3000.Amadeus library provides comprehensive integration with the Amadeus travel API for Net3000 solutions. This library enables flight and hotel booking capabilities, travel search functionality, and comprehensive travel data management.

Features

  • Flight Search & Booking: Search for flights, retrieve pricing, and manage flight bookings
  • Hotel Search & Booking: Find hotels, check availability, and process hotel reservations
  • Travel Data Management: Handle airports, destinations, and travel-related information
  • API Integration: Full integration with Amadeus Travel API v2
  • Response Models: Comprehensive data models for all Amadeus API responses

Installation

dotnet add package net3000.amadeus

Dependencies

  • System.IdentityModel.Tokens.Jwt (v8.14.0)

Configuration

Add your Amadeus API credentials to your configuration:

{
  "Amadeus": {
    "ApiKey": "your-api-key",
    "ApiSecret": "your-api-secret",
    "BaseUrl": "https://test.api.amadeus.com"
  }
}

Usage

Basic Setup

using Net3000.Amadeus;

// Initialize the service
var amadeusService = new AmadeusService(configuration);
// Search for flights
var flightOffers = await amadeusService.SearchFlights(
    originLocationCode: "NYC",
    destinationLocationCode: "LAX",
    departureDate: "2024-12-01",
    adults: 1
);
// Search for hotels
var hotelOffers = await amadeusService.SearchHotels(
    cityCode: "NYC",
    checkInDate: "2024-12-01",
    checkOutDate: "2024-12-03",
    adults: 1
);

API Reference

AmadeusService

Main service class for Amadeus API integration.

Methods
  • SearchFlights() - Search for available flights
  • SearchHotels() - Search for available hotels
  • GetAirports() - Retrieve airport information
  • GetFlightOffers() - Get detailed flight offers
  • GetHotelOffers() - Get detailed hotel offers

Models

  • Airport - Airport information model
  • AirportsResponse - Response wrapper for airport data
  • FlightOffer - Flight offer details
  • FlightOffersResponse - Response wrapper for flight offers
  • Hotel - Hotel information model
  • HotelOffer - Hotel offer details
  • HotelOffersResponse - Response wrapper for hotel offers
  • Offer - Base offer model
  • OfferPrice - Pricing information

Error Handling

The library provides comprehensive error handling with detailed error messages and proper HTTP status code mapping from the Amadeus API.

Rate Limiting

The library respects Amadeus API rate limits and includes built-in retry logic for handling temporary rate limit exceeded responses.

Testing

Use the Amadeus test environment for development:

  • Test API Key and Secret from Amadeus Developer Portal
  • Test Base URL: https://test.api.amadeus.com

License

This library is proprietary to Net3000. Usage is restricted to Net3000.ca solutions and authorized affiliates. Redistribution, sublicensing, or integration with third-party products outside the Net3000 ecosystem is prohibited without written consent from Net3000.

Support

For support and questions, contact the Net3000 development team or visit net3000.ca.

Changelog

v1.0.0

  • Initial release with flight and hotel booking capabilities
  • Full Amadeus Travel API v2 integration
  • Comprehensive response models and error handling
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on net3000.amadeus:

Package Downloads
net3000.servicecoordinator

Service coordination library for Net3000 solutions. Provides API connection management and service orchestration capabilities.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 180 7/9/2026

Initial release of Net3000 Amadeus library with flight and hotel booking capabilities.