Skip to main content

Wink API

Project description

wink-sdk-channel-manager

APIs

Not every integrator needs every APIs. For that reason, we have separated APIs into context.

  • Affiliate: All APIs related to selling travel inventory as an affiliate.
  • Analytics: All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics.
  • Booking: All APIs related to creating platform bookings.
  • Channel Manager: All APIs related to channel managers who want to integrate with our platform.
  • Extranet: All APIs related to managing travel inventory and suppliers.
  • Inventory: All APIs related to retrieve known travel inventory as it was found using the Lookup API..
  • Lookup: All APIs related to locating inventory by region, locale and property flags.
  • Reference: All APIs related to retrieving platform-supported taxonomies.
  • TripPay: All APIs related to TripPay account management, booking, mapping and integration features.

SDKs

We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: https://openapi-generator.tech/docs/generators.

Usage

These features are made available to you via a REST API. This API is language agnostic.

Versioning

We chose to version our endpoints in a way that we hope affects your integration with us the least. You request the version of our API you wish to work with via the Wink-Version header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints.

Release history

Channel Manager API

Wink exposes a secured REST-based, JSON API to its channel manager partners. The connection is "channel-wide". Partners are free to integrate with the REST-based API using any programming language.

Intended Audience

This document is intended for external channel partners who wish to integrate with Wink.

Requirements

  • Active account with Wink. Sign up for your Channel Manager account:
  • Active application. An application provides you with Oauth2 credentials you can pass to our endpoints. One is already created for you upon account creation.
  • Your production IP numbers. They need to be whitelisted before you can talk to our production environment.

Performance

A particular attention to performance should be given when integrating with this API. A few things to be aware of:

  • Enable gzip compression to make payloads smaller.
  • Fewer large REST calls are preferred to many small ones. E.g. It is better to update many dates instead of individual dates.
  • It is possible to update both rate and availability with a single request.
  • Request only date ranges that you will use. There is no need to request an entire year if you will only be working with the first seven days.

Reservation notification (PUSH)

Wink supports PUSH notifications to communicate reservations. We also support BASIC AUTH to your endpoint. If you want to enable PUSH, add your PUSH endpoint and credentials (optional) to your account.

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

  • API version: 30.17.10
  • Package version: 0.0.34
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.8+

Installation & Usage

pip install

You can install the package from PyPi using:

pip install wink_sdk_channel_manager

Or you can install it directly from the repository using:

pip install git+https://github.com/wink-travel/wink-sdk-python.git@v0.0.34#egg=wink_sdk_channel_manager&subdirectory=wink-sdk-channel-manager

(you may need to run pip with root permission: sudo pip install git+https://github.com/wink-travel/wink-sdk-python.git@v0.0.34#egg=wink_sdk_channel_manager&subdirectory=wink_sdk_channel_manager)

Then import the package:

import wink_sdk_channel_manager

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 wink_sdk_channel_manager

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import wink_sdk_channel_manager
from wink_sdk_channel_manager.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://integrations.wink.travel
# See configuration.py for a list of all supported configuration parameters.
configuration = wink_sdk_channel_manager.Configuration(
    host = "https://integrations.wink.travel"
)

# 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
with wink_sdk_channel_manager.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wink_sdk_channel_manager.ChannelManagerApi(api_client)
    wink_version = 'wink_version_example' # str |  (optional)
    accept = 'accept_example' # str |  (optional)

    try:
        # Say Hello
        api_response = api_instance.ping(wink_version=wink_version, accept=accept)
        print("The response of ChannelManagerApi->ping:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ChannelManagerApi->ping: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://integrations.wink.travel

Class Method HTTP request Description
ChannelManagerApi ping GET /api/channel-manager/ping Say Hello
ChannelManagerApi show_properties GET /api/channel-manager/property/list Show Properties
ChannelManagerApi show_property GET /api/channel-manager/property/{propertyIdentifier} Show ChannelManagerProperty
ChannelManagerApi show_property_booking GET /api/channel-manager/property/{propertyIdentifier}/booking/{bookingIdentifier} Show Booking
ChannelManagerApi show_property_bookings GET /api/channel-manager/property/{propertyIdentifier}/booking/list Show Bookings
ChannelManagerApi show_property_room_rates GET /api/channel-manager/property/{propertyIdentifier}/master-rate/{masterRateIdentifier} Show Daily Rates
ChannelManagerApi update_rates PUT /api/channel-manager/property/{propertyIdentifier}/master-rate/{masterRateIdentifier} Update Daily Rates

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

oAuth2ClientCredentials

  • Type: OAuth
  • Flow: application
  • Authorization URL: https://iam.wink.travel/oauth2/authorize
  • Scopes:
  • integrations.read: Read Wink data
  • integrations.write: Create Wink data
  • integrations.remove: Remove Wink data

Author

bjorn@wink.travel

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

wink_sdk_channel_manager-0.0.34.tar.gz (50.1 kB view details)

Uploaded Source

Built Distribution

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

wink_sdk_channel_manager-0.0.34-py3-none-any.whl (96.6 kB view details)

Uploaded Python 3

File details

Details for the file wink_sdk_channel_manager-0.0.34.tar.gz.

File metadata

File hashes

Hashes for wink_sdk_channel_manager-0.0.34.tar.gz
Algorithm Hash digest
SHA256 b8241b056a2b2f992715e56c952ed1ff151b7012eac4e40beed421b46d1c7eec
MD5 a6b95e9099bb295b911ba91782ef385c
BLAKE2b-256 5576bbd2e25e5453a8be12c5a14b4427539f094fa8612d277f04129a14cbaed4

See more details on using hashes here.

File details

Details for the file wink_sdk_channel_manager-0.0.34-py3-none-any.whl.

File metadata

File hashes

Hashes for wink_sdk_channel_manager-0.0.34-py3-none-any.whl
Algorithm Hash digest
SHA256 7b4b2b05aad954622b7c307d0a5840d0118e714cbe85d4d8dc8d58e43098bfad
MD5 cecdba4ca2c5a8d7cb49515175ba53b2
BLAKE2b-256 f3d4746b51640913f16ec8d0c1edd485e5d4a27c906bdd7a8aa5b9d65dcb785b

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