Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@leisurelink/dreamcatcher-client
Advanced tools
node.js client for adaptor calls to the public api
node.js client for adaptor calls to the public api
"dreamcatcher-client": "git+ssh://git@github.com/LeisureLink/dreamcatcher-client.git#master"
Before making any calls to the dreamcatcher API using the client, it must be initialized with the API key, URL of the correct API (dev or prod) you wish to access, and an optional timeout value through the init method.
var dreamcatcher_client = require('dreamcatcher-client');
dreamcatcher_client.init(apiKey, baseURL, timeout);
The dreamcatcher client supports all of the calls detailed in the LeisureLink Integration Hub API and Public Distribution API documentation:
LeisureLink Integration Hub API
LeisureLink Public Distribution API
Calls follow a standard format:
dreamcatcher_client.*httpverbTypeOfInformation*(id, queryParams, body, callback)
where only the relevant parameters are included. For example:
dreamcatcher_client.getAvailability(rentalUnitId, queryParams, callback);
For a full listing of available methods and their signatures, see below.
queryParams is simply an object containing key(s) for each query parameter associated with the call and their appropriate value. Continuing the getAvailability example, you might pass in the following for queryParams:
{
days: 180
}
To see what parameters are available for each call, please refer to the API documentation linked above.
$.init(apiKey, baseUrl, timeout)
$.getRentalUnitDetail(rentalUnitId, callback)
$.getRentalUnitList(queryParams, callback)
$.getAvailability(rentalUnitId, queryParams, callback)
$.postAvailability(rentalUnitId, body, callback)
$.postCheckAvailability(rentalUnitId, body, callback)
$.getBaseRates(rentalUnitId, body, callback)
$.postBaseRates(rentalUnitId, body, callback)
$.getStayRestrictions(rentalUnitId, callback)
$.postStayRestrictions(rentalUnitId, body, callback)
$.getBooking(bookingId, callback)
$.postQuote(body, callback)
$.postBooking(body, callback)
$.postBookingCancellation(bookingId, body, callback)
$.getCheckInInformation(rentalUnitId, callback)
$.getHubBooking(hubBookingId, callback)
$.postHubBooking(hubBookingId, callback)
$.postHubBookingConfirmation(hubBookingId, body, callback)
$.postHubBookingFailure(hubBookingId, body, callback)
$.postHubBookingCancellation(hubBookingId, body, callback)
$.postHubBookingCancellationConfirmation(hubBookingId, body, callback)
$.getSpecials(rentalUnitId, callback)
$.putSpecial(specialId, body, callback)
$.getUpdateLog(queryParams, callback)
FAQs
node.js client for adaptor calls to the public api
We found that @leisurelink/dreamcatcher-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 open source maintainers 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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.