
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
wink-sdk-notification
Advanced tools
Welcome to the Wink API - A programmer-friendly way to manage, sell and book travel inventory on the Wink platform. The API gives you all the tools you need to ready your properties and inventory for sale across 1000s of our native sales channels. Integrators, affiliates, travel agents and content creators have the ability search for your travel inventory and promote / sell it in a wide variety of ways.
We have already integrated with the most well-known channel managers so you don't have to. To see our current integrations, please go to https://extranet.wink.travel and scroll to Connectivity section. Once your properties are set up, you can finish the setup by mapping your property to Wink using your channel manager partner portal. If your properties don't have a channel manager, you can easily manage rates and availability with this API.
Programmers are [most likely] a requirement to start integrating with Wink. Companies and organizations that would most benefit from integrating with us are new and existing travel companies that have relationships with suppliers and that need an advanced system from which to manage their travel inventory and get that same inventory out to as many eyeballs as possible at the lowest price possible.
Not every integrator needs every API. For that reason, we have separated APIs into context.
Consume endpoints are for developers who want to find existing travel inventory and either book it or use it to advertise through one of their Wink affiliate accounts.
Produce endpoints are for developers who want to create and manage travel inventory.
Taxonomy endpoints are for developers who want to consume and produce travel inventory and need taxonomies of standard and non-standard codes for inventory types, classes, statuses etc.
Insight endpoints do exactly what the name implies - They offer platform-level insight into the activities of producers and consumers.
Payment endpoints are for developers who want to purchase travel inventory. This can be done via the API as a registered Travel Agent or using our API in conjunction with our PCI compliant payment widget for all other entities.
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.
These features are made available to you via a REST API. This API is language agnostic.
We chose to version our endpoints in a way that we hope affects your integration minimally. 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.
The Notifications API is a way for us to stay in touch with your user, property or affiliate account.
Browse the endpoints in the left navigation bar to get started.
This Python package is automatically generated by the OpenAPI Generator project:
Python 3.8+
You can install the package from PyPi using:
pip install wink_sdk_notification
Or you can install it directly from the repository using:
pip install git+https://github.com/wink-travel/wink-sdk-python.git@v0.0.41#egg=wink_sdk_notification&subdirectory=wink-sdk-notification
(you may need to run pip
with root permission: sudo pip install git+https://github.com/wink-travel/wink-sdk-python.git@v0.0.41#egg=wink_sdk_notification&subdirectory=wink_sdk_notification
)
Then import the package:
import wink_sdk_notification
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_notification
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import wink_sdk_notification
from wink_sdk_notification.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wink.travel
# See configuration.py for a list of all supported configuration parameters.
configuration = wink_sdk_notification.Configuration(
host = "https://api.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_notification.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wink_sdk_notification.NotificationApi(api_client)
company_identifier = 'company-1' # str | Remove a message that belongs to this company identifier
message_identifier = 'message-1' # str | Message identifier to be removed
wink_version = 'wink_version_example' # str | (optional)
accept = 'accept_example' # str | (optional)
try:
# Delete Notification
api_response = api_instance.remove_notification(company_identifier, message_identifier, wink_version=wink_version, accept=accept)
print("The response of NotificationApi->remove_notification:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling NotificationApi->remove_notification: %s\n" % e)
All URIs are relative to https://api.wink.travel
Class | Method | HTTP request | Description |
---|---|---|---|
NotificationApi | remove_notification | DELETE /api/affiliate/{companyIdentifier}/message/{messageIdentifier} | Delete Notification |
NotificationApi | show_notification | GET /api/affiliate/{companyIdentifier}/message/{messageIdentifier} | Show Notification |
NotificationApi | show_notifications | GET /api/affiliate/{companyIdentifier}/message/list | Show Notifications |
NotificationApi | show_unread_message_count | GET /api/affiliate/{companyIdentifier}/message/count | Show Unread Count |
Authentication schemes defined for the API:
FAQs
Wink API
We found that wink-sdk-notification demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.