Socket
Book a DemoInstallSign in
Socket

rtp-live-pass

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtp-live-pass

Retrieve scan data from your RTP LivePass based resort season pass.

latest
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

RTP LivePass data retrieval for Node

Retrieve scan data from an RTP LivePass based season pass account.

Defaults to Park City Mountain Resort.

Build Status

Install

$ npm install rtp-live-pass

Example Usage

var LivePassUser = require("./index"),
	async = require("async");

var user = new LivePassUser();

async.waterfall([
	function (callback) {
		user.authenticate("email@example.com", "password", function(err, userObject) {
			callback(err, userObject);
		});
	},
	function (userObject, callback) {
		user.getAccessCode(function(err, accessCode) {
			callback(err, accessCode);
		});
	},
	function (accessCode, callback) {
		user.getScanHistory(function(err, history) {
			callback(err, history);
		});
	}
], function (err, result) {
	console.log(err);
	console.log(result);
});

Retrieving Data from a different Resort

Once you've determined the root endpoint for your resort's LivePass API, you can override the LivePassUser object's endpoint value.

For example:

var user = new LivePassUser();

user._resortEndpoint = "https://www.someresort.com/endpoint/";

For more information on determining your resort's LivePass API endpoint, see my blog post here: http://jeffstieler.com/projects/mylivepass-season-ski-pass-data-retrieval/

Keywords

RTP

FAQs

Package last updated on 19 Apr 2013

Did you know?

Socket

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.

Install

Related posts