npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@leisurelink/dreamcatcher-client

v0.0.5-fix-for-bdc

Published

node.js client for adaptor calls to the public api

Downloads

5

Readme

dreamcatcher-client

node.js client for adaptor calls to the public api

Package.json

"dreamcatcher-client": "git+ssh://[email protected]/LeisureLink/dreamcatcher-client.git#master"

Initializing the client

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);

Using the client

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.

Methods

$.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)