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

sabre-dev-studio

v1.2.0

Published

NodeJS wrapper for the Sabre Dev Studio API

Downloads

20

Readme

sabre-dev-studio

NodeJS wrapper for the Sabre Dev Studio API

Build Status

Getting Started

Install the module with: npm install sabre-dev-studio

var SabreDevStudio = require('sabre-dev-studio');
var sabre_dev_studio = new SabreDevStudio({
  client_id:     'V1:1234:ABCD:XYZ',
  client_secret: 'SeKr1T',
  uri:           'https://api.test.sabre.com'
});
var options = {};
var callback = function(error, data) {
  if (error) {
    console.log(error);
  } else {
    console.log(JSON.stringify(JSON.parse(data)));
  }
};
sabre_dev_studio.get('/v1/lists/supported/shop/themes', options, callback);

Options

new SabreDevStudioFlight(options)

options - an object containing the following items:

  • client_id - credentials: client ID provided by Sabre
  • client_secret - credentials: client secret provided by sabre
  • uri - base URI of the API to use
  • gzip - (optional) enables gzip; defaults to true
  • access_token - (optional) an existing access token to use; will not be renewed unless credentials are supplied

Documentation

See http://developer.sabre.com

Examples

Using the Flight API:

var SabreDevStudioFlight = require('sabre-dev-studio/lib/sabre-dev-studio-flight');
var sabre_dev_studio_flight = new SabreDevStudioFlight({
  client_id:     'V1:1234:ABCD:XYZ',
  client_secret: 'SeKr1T',
  uri:           'https://api.test.sabre.com'
});
var callback = function(error, data) {
  if (error) {
    // Your error handling here
    console.log(error);
  } else {
    // Your success handling here
    console.log(JSON.stringify(JSON.parse(data)));
  }
};
sabre_dev_studio_flight.travel_theme_lookup(callback);
sabre_dev_studio_flight.theme_airport_lookup('BEACH', callback);

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2014 Sabre Corp Licensed under the MIT license.

Disclaimer of Warranty and Limitation of Liability

This software and any compiled programs created using this software are furnished “as is” without warranty of any kind, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. No oral or written information or advice given by Sabre, its agents or employees shall create a warranty or in any way increase the scope of this warranty, and you may not rely on any such information or advice. Sabre does not warrant, guarantee, or make any representations regarding the use, or the results of the use, of this software, compiled programs created using this software, or written materials in terms of correctness, accuracy, reliability, currentness, or otherwise. The entire risk as to the results and performance of this software and any compiled applications created using this software is assumed by you. Neither Sabre nor anyone else who has been involved in the creation, production or delivery of this software shall be liable for any direct, indirect, consequential, or incidental damages (including damages for loss of business profits, business interruption, loss of business information, and the like) arising out of the use of or inability to use such product even if Sabre has been advised of the possibility of such damages.