Welcome to the Python SDK that enables you to communicate with all that the TripPay platform has to offer.
This SDK contains libraries you can leverage to communicate with the TripPay platform.
Python 3.8+
Download libraries from PyPi.
The Payment API exposes endpoints for affiliates and hotels to track bookings, analytics and funds availability. They can also choose to withdraw available funds to their bank account.
- AccountApi: Manage your account(s) on Wink with the Account API.
- AccountMappingsApi: Manage your account mappings on Wink with the Account Mapping API.
- AgentApi: Create a booking contract as an Agent with the Agent API.
- ApplicationApi: Manage your applications.
- ContractApi: Retrieve booking contracts and cancel them if possible.
- ManagingEntityApi: Managed entities can be bound to applications and webhooks..
- MappingApi: More mapping features to control mappings between your system and Wink.
- PingApi: Easy way to check if you are connected and authenticated with the Wink platform.
- WebhookApi: Use the Webhook API to create webhooks to interface with the TripPay API.
You can install the package from PyPi using:
pip install trip_pay_sdk_paymentYou will need a client ID and a client secret to communicate with any of the Wink platform endpoints. You can create your account and get your credentials here:
Steps:
- Register your personal user account
- Log in
- Create your first account
- Select that account
- Choose to create an Application for that account
- The application will hold your credentials
Using the client ID and client secret, you can create the OAUTH2 access token. Instructions to create the access token you can find in the API docs Authentication section, eg. https://docs.wink.travel/affiliate
Create the access token environment variable in your preferred way:
- ACCESS_TOKEN=YOUR_ACCESS_TOKEN
- Wink Python SDK Repo: https://github.com/wink-travel/wink-sdk-python
- WordPress: https://wordpress.org/plugins/wink2travel/
