Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wordlift/feratel-python-client

Repository files navigation

feratel-client

Description

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 1.0.0
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/wordlift/feratel-python-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/wordlift/feratel-python-client.git)

Then import the package:

import feratel_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import feratel_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import feratel_client
from feratel_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = feratel_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
async with feratel_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = feratel_client.AccommodationsApi(api_client)
    lang = 'lang_example' # str | 
    filter_id = 'filter_id_example' # str | 
    linkkey = 'linkkey_example' # str | 
    session_id = '' # str | 
    fields = 'fields_example' # str |  (optional)

    try:
        await api_instance.accommodations_linkkey_lang_filterresults_filter_id_get(lang, filter_id, linkkey, session_id, fields=fields)
    except ApiException as e:
        print("Exception when calling AccommodationsApi->accommodations_linkkey_lang_filterresults_filter_id_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AccommodationsApi accommodations_linkkey_lang_filterresults_filter_id_get GET /accommodations/{linkkey}/{lang}/filterresults/{filterId}
AccommodationsApi accommodations_linkkey_lang_searchresults_search_id_filterresults_filter_id_get GET /accommodations/{linkkey}/{lang}/searchresults/{searchId}/filterresults/{filterId}
AccommodationsApi accommodations_linkkey_lang_searchresults_search_id_filterresults_get GET /accommodations/{linkkey}/{lang}/searchresults/{searchId}/filterresults
AccommodationsApi get_acc_list_package_result_for_service_provider GET /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/packages
AccommodationsApi get_acc_list_result_for_service_provider GET /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/services Detail list of service provider
AccommodationsApi get_acc_package_search_result_for_service_provider GET /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/packages/searchresults/{searchId}
AccommodationsApi get_acc_search_result_for_service_provider GET /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/services/searchresults/{searchId} Detail search of service provider
AccommodationsApi get_acc_service_product GET /accommodations/{linkkey}/{lang}/{dbCode}/products/{productId} Detail of product
AccommodationsApi get_acc_service_provider GET /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId} Detail of service provider
AccommodationsApi get_acco_list_result GET /accommodations/{linkkey}/{lang} List result
AccommodationsApi get_acco_rating_comments_result GET /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/rating/comments List of rating comments
AccommodationsApi get_acco_search_result GET /accommodations/{linkkey}/{lang}/searchresults/{searchId}
AccommodationsApi get_linked_events_to_acco_list_result GET /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/linked/events List result of Linked Events
AccommodationsApi get_linked_infrastructures_to_accommodation_result GET /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/linked/infrastructures List result of Linked Infrastructures
AccommodationsApi get_price_matrix POST /accommodations/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/pricematrix
AddServicesApi addservices_linkkey_lang_filterresults_filter_id_get GET /addservices/{linkkey}/{lang}/filterresults/{filterId}
AddServicesApi addservices_linkkey_lang_filterresults_get GET /addservices/{linkkey}/{lang}/filterresults
AddServicesApi addservices_linkkey_lang_searchresults_search_id_filterresults_filter_id_get GET /addservices/{linkkey}/{lang}/searchresults/{searchId}/filterresults/{filterId}
AddServicesApi addservices_linkkey_lang_searchresults_search_id_filterresults_get GET /addservices/{linkkey}/{lang}/searchresults/{searchId}/filterresults
AddServicesApi get_add_serv_list_result GET /addservices/{linkkey}/{lang} List result
AddServicesApi get_add_serv_list_result_for_service GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/services/{serviceId}/products List result for one service
AddServicesApi get_add_serv_list_result_for_service_provider GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/services List result for one service provider
AddServicesApi get_add_service_product GET /addservices/{linkkey}/{lang}/{dbCode}/products/{productId} Detail of product
AddServicesApi get_add_service_products_search_result_for_service GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/services/{serviceId}/searchresults/{searchId} Search result for one service
AddServicesApi get_add_service_rating_comments_result GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/rating/comments List of rating comments
AddServicesApi get_add_service_service GET /addservices/{linkkey}/{lang}/{dbCode}/services/{serviceId} Detail of service
AddServicesApi get_add_service_service_provider GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceProviderId} Detail of service provider
AddServicesApi get_addserv_search_result GET /addservices/{linkkey}/{lang}/searchresults/{searchId} Search result
AddServicesApi get_addserv_search_result_for_service_provider GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/searchresults/{searchId} Search result for one service provider
AddServicesApi get_linked_events_to_add_service_list_result GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceId}/linked/events List result of Linked Events
AddServicesApi get_linked_infrastructures_to_add_service_result GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceId}/linked/infrastructures List result of Linked Infrastructures
AddServicesApi get_recommended_add_serv_list_result_for_service GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/services/{serviceId}/recommended Recommended List result for one service
AddServicesApi get_recommended_add_services_search_result_for_service GET /addservices/{linkkey}/{lang}/{dbCode}/{serviceProviderId}/services/{serviceId}/recommended/{searchId} Search result Recommended Services for one service
AuthApi auth_get GET /Auth
AuthApi auth_post POST /Auth
BrochuresApi brochures_linkkey_lang_filterresults_filter_id_get GET /brochures/{linkkey}/{lang}/filterresults/{filterId}
BrochuresApi brochures_linkkey_lang_filterresults_get GET /brochures/{linkkey}/{lang}/filterresults
BrochuresApi get_brochure_detail_result GET /brochures/{linkkey}/{lang}/{dbCode}/{brochureId} Detail of brochure
BrochuresApi get_brochure_list_result GET /brochures/{linkkey}/{lang} List result
ClickCountApi clickcount_linkkey_post POST /clickcount/{linkkey}
ConvertApi convert_convert_offer_post POST /Convert/ConvertOffer
ConvertApi convert_convert_sp_offer_post POST /Convert/ConvertSPOffer
EventsApi events_linkkey_lang_filterresults_filter_id_get GET /events/{linkkey}/{lang}/filterresults/{filterId}
EventsApi events_linkkey_lang_searchresults_search_id_filterresults_filter_id_get GET /events/{linkkey}/{lang}/searchresults/{searchId}/filterresults/{filterId}
EventsApi get_detail_result GET /events/{linkkey}/{lang}/{dbCode}/{eventId} Detail of event
EventsApi get_event_list_result GET /events/{linkkey}/{lang} List result
EventsApi get_event_search_result GET /events/{linkkey}/{lang}/searchresults/{searchId} Search result
EventsApi get_group_detail_result GET /events/{linkkey}/{lang}/eventgroups/{dbCode}/{eventGroupId} Event group details
EventsApi get_linked_add_serv_list_result GET /addservices/{linkkey}/{lang}/linked/events/{dbCode}/{eventId} List result of Linked Add. Services
EventsApi get_linked_events_result GET /events/{linkkey}/{lang}/{dbCode}/{eventId}/linked/events List result of Linked event from link infrastructures
EventsApi get_linked_infrastructures_result GET /events/{linkkey}/{lang}/{dbCode}/{eventId}/linked/infrastructures List result of Linked Infrastructures
FiltersApi filters_id_delete DELETE /Filters/{id}
FiltersApi filters_id_put PUT /Filters/{id}
FiltersApi filters_post POST /Filters
FiltersApi get_filter_object_detail GET /Filters/{id}
InfrastructuresApi get_infrastructure_detail_result GET /infrastructures/{linkkey}/{lang}/{dbCode}/{infrastructureId} Detail of infrastructure
InfrastructuresApi get_infrastructure_list_result GET /infrastructures/{linkkey}/{lang} List result
InfrastructuresApi get_infrastructure_search_result GET /infrastructures/{linkkey}/{lang}/searchresults/{searchId} Search result
InfrastructuresApi get_linked_add_serv_to_infrastructure_list_result GET /addservices/{linkkey}/{lang}/linked/infrastructures/{dbCode}/{infrastructureId} List result of Linked Add. Services
InfrastructuresApi get_linked_events_to_infrastructure_list_result GET /infrastructures/{linkkey}/{lang}/{dbCode}/{infrastructureId}/linked/events List result of Linked Events
InfrastructuresApi get_linked_infrastructures_to_infrastructure_result GET /infrastructures/{linkkey}/{lang}/{dbCode}/{infrastructureId}/linked/infrastructures List result of Linked Infrastructures
InfrastructuresApi infrastructures_linkkey_lang_filterresults_filter_id_get GET /infrastructures/{linkkey}/{lang}/filterresults/{filterId}
InfrastructuresApi infrastructures_linkkey_lang_searchresults_search_id_filterresults_filter_id_get GET /infrastructures/{linkkey}/{lang}/searchresults/{searchId}/filterresults/{filterId}
KeyValuesApi get_payment_methods GET /KeyValues/paymentmethods/{lang} Returns available payment methods
KeyValuesApi get_sys_translations_for_type GET /KeyValues/bptranslations/{lang} Returns all available translations for the booking process
KeyValuesApi key_values_countries_lang_get GET /KeyValues/countries/{lang} Returns all countries
KeyValuesApi key_values_currencies_linkkey_lang_get GET /KeyValues/currencies/{linkkey}/{lang} Returns all available currencies for the provided linkkey
KeyValuesApi key_values_datasets_linkkey_lang_get GET /KeyValues/datasets/{linkkey}/{lang} Returns datasets for the provided linkkey
KeyValuesApi key_values_languages_lang_get GET /KeyValues/languages/{lang} Returns information about all global languages in the requested language
KeyValuesApi key_values_location_linkkey_lang_all_get GET /KeyValues/location/{linkkey}/{lang}/all Returns all locations for the provided linkkey
KeyValuesApi key_values_location_linkkey_nearby_get GET /KeyValues/location/{linkkey}/nearby Returns distance to objects of the requested object types for the provided geolocation
KeyValuesApi key_values_point_of_sale_linkkey_lang_get GET /KeyValues/pointOfSale/{linkkey}/{lang} Returns information about the salespoint defined for the linkkey
KeyValuesApi key_values_salutations_lang_get GET /KeyValues/salutations/{lang} Returns all global salutations for the requested language
PackagesApi get_acc_package_detail_list_result_for_service_provider_part_of_package GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId}/assignments/{serviceProviderId}/packages
PackagesApi get_acc_package_search_result_for_service_provider_part_of_package GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId}/assignments/{serviceProviderId}/packages/searchresults/{searchId}
PackagesApi get_acco_package_assignments_search_result GET /packages/{linkkey}/{lang}/{dbCode}/{packageId}/sections/accommodations/{sectionId}/searchresults/{searchId} Accommodation Org. Package Assignments Search
PackagesApi get_add_service_package_assignments_search_result GET /packages/{linkkey}/{lang}/{dbCode}/{packageId}/sections/addservices/{sectionId}/searchresults/{searchId} Add. Service Org. Package Assignments Search
PackagesApi get_common_package_detail_result GET /packages/{linkkey}/{lang}/{dbCode}/{packageId} Detail of Package
PackagesApi get_house_package_assignments GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId}/assignments/list
PackagesApi get_house_package_assignments_search_result GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId}/assignments/searchresults/{searchId}
PackagesApi get_org_package_calculate_price_result POST /packages/{linkkey}/{lang}/{dbCode}/{packageId}/calculate
PackagesApi get_org_package_section_search_result GET /packages/{linkkey}/{lang}/{dbCode}/{packageId}/sections/searchresults/{searchId} Org Package Sections Search
PackagesApi get_package_detail_result GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId} Detail of Package
PackagesApi get_package_list_result GET /packages/{linkkey}/{lang} List result
PackagesApi get_package_search_result GET /packages/{linkkey}/{lang}/searchresults/{searchId} Search result
PackagesApi packages_linkkey_lang_db_code_package_id_sections_accommodations_section_id_searchresults_search_id_filterresults_get GET /packages/{linkkey}/{lang}/{dbCode}/{packageId}/sections/accommodations/{sectionId}/searchresults/{searchId}/filterresults
PackagesApi packages_linkkey_lang_filterresults_filter_id_get GET /packages/{linkkey}/{lang}/filterresults/{filterId}
PackagesApi packages_linkkey_lang_filterresults_get GET /packages/{linkkey}/{lang}/filterresults
PackagesApi packages_linkkey_lang_searchresults_search_id_filterresults_filter_id_get GET /packages/{linkkey}/{lang}/searchresults/{searchId}/filterresults/{filterId}
PackagesApi packages_linkkey_lang_type_db_code_package_id_assignments_filterresults_filter_id_get GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId}/assignments/filterresults/{filterId}
PackagesApi packages_linkkey_lang_type_db_code_package_id_assignments_filterresults_get GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId}/assignments/filterresults
PackagesApi packages_linkkey_lang_type_db_code_package_id_assignments_searchresults_search_id_filterresults_filter_id_get GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId}/assignments/searchresults/{searchId}/filterresults/{filterId}
PackagesApi packages_linkkey_lang_type_db_code_package_id_assignments_searchresults_search_id_filterresults_get GET /packages/{linkkey}/{lang}/{type}/{dbCode}/{packageId}/assignments/searchresults/{searchId}/filterresults
RequestsApi requestpool_linkkey_lang_accommodation_post POST /requestpool/{linkkey}/{lang}/accommodation
RequestsApi requests_linkkey_lang_accommodation_db_code_sp_id_post POST /requests/{linkkey}/{lang}/accommodation/{dbCode}/{spId}
RequestsApi requests_linkkey_lang_accommodation_detailed_post POST /requests/{linkkey}/{lang}/accommodation/detailed
RequestsApi requests_linkkey_lang_accommodation_post POST /requests/{linkkey}/{lang}/accommodation
RequestsApi requests_linkkey_lang_accommodation_simple_post POST /requests/{linkkey}/{lang}/accommodation/simple
RequestsApi requests_linkkey_lang_addservice_db_code_sp_id_post POST /requests/{linkkey}/{lang}/addservice/{dbCode}/{spId}
RequestsApi requests_linkkey_lang_addservice_detailed_post POST /requests/{linkkey}/{lang}/addservice/detailed
RequestsApi requests_linkkey_lang_addservice_post POST /requests/{linkkey}/{lang}/addservice
RequestsApi requests_linkkey_lang_addservice_simple_post POST /requests/{linkkey}/{lang}/addservice/simple
RequestsApi requests_linkkey_lang_package_post POST /requests/{linkkey}/{lang}/package
SearchesApi get_search_object_detail GET /searches/{id}
SearchesApi searches_id_clone_post POST /searches/{id}/clone
SearchesApi searches_id_copy_dest_id_put PUT /searches/{id}/copy/{destId}
SearchesApi searches_id_delete DELETE /searches/{id}
SearchesApi searches_id_put PUT /searches/{id}
SearchesApi searches_post POST /searches
ShoppingCartApi get_shopping_cart_detail GET /shoppingcart/{linkkey}/{lang}/{id} Detail of ShoppingCart
ShoppingCartApi get_shopping_cart_electronic_payment GET /shoppingcart/{linkkey}/{lang}/{id}/electronicpayment
ShoppingCartApi get_shopping_cart_recommended_services GET /shoppingcart/{linkkey}/{lang}/{id}/recommended
ShoppingCartApi shopping_cart_confirmation GET /shoppingcart/{linkkey}/{lang}/{id}/confirmation Get ShoppingCart Confirmation
ShoppingCartApi shopping_cart_payment_texts GET /shoppingcart/{linkkey}/{lang}/{id}/paymenttexts Get ShoppingCart Payment Texts
ShoppingCartApi shoppingcart_linkkey_lang_id_book_post POST /shoppingcart/{linkkey}/{lang}/{id}/book
ShoppingCartApi shoppingcart_linkkey_lang_id_delete DELETE /shoppingcart/{linkkey}/{lang}/{id}
ShoppingCartApi shoppingcart_linkkey_lang_id_discountcodes_code_post POST /shoppingcart/{linkkey}/{lang}/{id}/discountcodes/{code}
ShoppingCartApi shoppingcart_linkkey_lang_id_guest_put PUT /shoppingcart/{linkkey}/{lang}/{id}/guest
ShoppingCartApi shoppingcart_linkkey_lang_id_items_add_post POST /shoppingcart/{linkkey}/{lang}/{id}/items/add
ShoppingCartApi shoppingcart_linkkey_lang_id_items_addserviceaddon_post POST /shoppingcart/{linkkey}/{lang}/{id}/items/addserviceaddon
ShoppingCartApi shoppingcart_linkkey_lang_id_payment_put PUT /shoppingcart/{linkkey}/{lang}/{id}/payment
ShoppingCartApi shoppingcart_linkkey_lang_id_unlock_put PUT /shoppingcart/{linkkey}/{lang}/{id}/unlock
ShoppingCartApi shoppingcart_linkkey_lang_post POST /shoppingcart/{linkkey}/{lang}
ShoppingCartApi shoppingcart_linkkey_lang_shopping_cart_id_discountcodes_code_delete DELETE /shoppingcart/{linkkey}/{lang}/{shoppingCartId}/discountcodes/{code}
ShoppingCartApi shoppingcart_linkkey_lang_shopping_cart_id_items_accommodations_item_id_put PUT /shoppingcart/{linkkey}/{lang}/{shoppingCartId}/items/accommodations/{itemId}
ShoppingCartApi shoppingcart_linkkey_lang_shopping_cart_id_items_addservices_item_id_put PUT /shoppingcart/{linkkey}/{lang}/{shoppingCartId}/items/addservices/{itemId}
ShoppingCartApi shoppingcart_linkkey_lang_shopping_cart_id_items_brochures_item_id_put PUT /shoppingcart/{linkkey}/{lang}/{shoppingCartId}/items/brochures/{itemId}
ShoppingCartApi shoppingcart_linkkey_lang_shopping_cart_id_items_item_id_delete DELETE /shoppingcart/{linkkey}/{lang}/{shoppingCartId}/items/{itemId}
ShoppingCartApi shoppingcart_linkkey_lang_shopping_cart_id_items_tours_item_id_put PUT /shoppingcart/{linkkey}/{lang}/{shoppingCartId}/items/tours/{itemId}
ShoppingCartApi shoppingcart_linkkey_lang_validateswisspass_post POST /shoppingcart/{linkkey}/{lang}/validateswisspass
ShoppingCartApi validate_shopping_cart GET /shoppingcart/{linkkey}/{lang}/{id}/validate Validate shopping cart if it is ok to continue to booking
ShoppingListApi get_shopping_list_detail GET /shoppinglist/{linkkey}/{id} Detail of ShoppingList
ShoppingListApi shoppinglist_linkkey_id_carts_cart_id_delete DELETE /shoppinglist/{linkkey}/{id}/carts/{cartId}
ShoppingListApi shoppinglist_linkkey_id_delete DELETE /shoppinglist/{linkkey}/{id}
ShoppingListApi shoppinglist_linkkey_id_items_add_post POST /shoppinglist/{linkkey}/{id}/items/add
ShoppingListApi shoppinglist_linkkey_post POST /shoppinglist/{linkkey}
ShoppingListApi shoppinglist_linkkey_shopping_list_id_items_item_id_delete DELETE /shoppinglist/{linkkey}/{shoppingListId}/items/{itemId}
ToursApi get_infra_meet_points_result GET /tours/{linkkey}/{lang}/{dbCode}/{tourId}/meetingpoints/infrastructures Get infrastructure meeting points of tour
ToursApi get_infra_route_points_result GET /tours/{linkkey}/{lang}/{dbCode}/{tourId}/routepoints/infrastructures Get infrastructure route points of tour
ToursApi get_tour_detail_result GET /tours/{linkkey}/{lang}/{dbCode}/{tourId} Tour details
ToursApi get_tour_rating_comments_result GET /tours/{linkkey}/{lang}/{dbCode}/{tourId}/rating/comments List of tour ratings with comments
ToursApi get_tour_search_result GET /tours/{linkkey}/{lang}/searchresults/{searchId} Search result
ToursApi get_tour_variants_result POST /tours/{linkkey}/{lang}/{dbCode}/{tourId}/searchtourvariants Search for possible starting times / prices / durations of tour
ToursApi get_tours_list_result GET /tours/{linkkey}/{lang} List result
ToursApi tours_linkkey_lang_filterresults_filter_id_get GET /tours/{linkkey}/{lang}/filterresults/{filterId} Filter result based on filter object
ToursApi tours_linkkey_lang_filterresults_get GET /tours/{linkkey}/{lang}/filterresults General filter result
ToursApi tours_linkkey_lang_searchresults_search_id_filterresults_filter_id_get GET /tours/{linkkey}/{lang}/searchresults/{searchId}/filterresults/{filterId} Filter result of search result based on filter object
ToursApi tours_linkkey_lang_searchresults_search_id_filterresults_get GET /tours/{linkkey}/{lang}/searchresults/{searchId}/filterresults General filter result of search result

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

Swagger

Author

About

Feratel Python Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published