Skip to main content

SDK for interacting with Ignite Travel SOAP services, managing rooms, availability, inventory, and bookings.

Project description

Ignite Travel SDK

The Ignite Travel Unofficial SDK provides a client to interact with the Ignite Travel SOAP-based web services. It allows you to manage room lists, retrieve availability, update inventory, and get bookings for resorts.

GitHub Repository

Installation

To install the Ignite Travel SDK, you can use pip, the Python package installer. Run the following command in your terminal:

pip install ignite-travel

Getting Starged

Usage

To use the Ignite Travel SDK, you need to set up your environment with the necessary credentials and create an instance of the DimsInventoryClient. Below is a basic example of how to get started:

  1. Set Environment Variables: Ensure you have the following environment variables set in your system:

    • IGNITE_USERNAME: Your Ignite Travel username.
    • IGNITE_PASSWORD: Your Ignite Travel password.
    • IGNITE_TOKEN: Your Ignite Travel API token.
  2. Create a Client Instance: Use the DimsInventoryClient to interact with the Ignite Travel services.

    # import client
    from ignite_travel.sdk import DimsInventoryClient
    
    # Example usage
    client = DimsInventoryClient()
    
    # Retrieve room list for a specific resort
    resort_id = 123
    room_list = client.get_roomlist(resort_id)
    print(room_list)
    
    # Retrieve availability for a specific date range
    start_date = "01-01-2023"
    end_date = "07-01-2023"
    availability = client.retrieve_availability(resort_id, start_date, end_date)
    print(availability)
    
    # Update inventory for a specific room and date
    room_id = 456
    date = "01-01-2023"
    quantity = 10
    update_response = client.update_availability(room_id, resort_id, date, quantity)
    print(update_response)
    
    # update inventory for a given date range
    room_id = 456
    dates = ["01-01-2023", "02-01-2023", "03-01-2023"]
    quantities = [10, 15, 20]
    update_response = client.availability_mass_update(room_id, resort_id, dates, quantities)
    print(update_response)
    
    # Get bookings for a specific date range
    bookings = client.get_bookings(resort_id, start_date, end_date)
    print(bookings)
    
    # Get cancelled bookings for a specific date range
    cancelled_bookings = client.get_cancelled_bookings(resort_id, start_date, end_date)
    print(cancelled_bookings)
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ignite_travel-0.1.17.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ignite_travel-0.1.17-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file ignite_travel-0.1.17.tar.gz.

File metadata

  • Download URL: ignite_travel-0.1.17.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for ignite_travel-0.1.17.tar.gz
Algorithm Hash digest
SHA256 8a4e41a16286071801921e6e58db480ef8aeb2ef9347c6a1457c1ba8879cf687
MD5 4c1cea2e3f14975a7c9246498247b8bb
BLAKE2b-256 e9091ad0fa886980c5d2de067db8fe3e4c2872b872101068cf4855fc8c5859f1

See more details on using hashes here.

File details

Details for the file ignite_travel-0.1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for ignite_travel-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 0f302836d952f1cdb54b3c9e884ab8303bce5febcb88d2f2c08d5f0812fd5a58
MD5 f9c7d8a70c783c495e265c998d4422d7
BLAKE2b-256 34c8d8963635c2d8092d48e55d714b17140db20fd6459c4b19046a5d6bd2511c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page