rtp-live-pass

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

RTP LivePass data retrieval for Node

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

Defaults to Park City Mountain Resort.

$ npm install rtp-live-pass
var LivePassUser = require("./index"),
    async = require("async");
 
var user = new LivePassUser();
 
async.waterfall([
    function (callback) {
        user.authenticate("email@example.com", "password", function(erruserObject) {
            callback(err, userObject);
        });
    },
    function (userObjectcallback) {
        user.getAccessCode(function(erraccessCode) {
            callback(err, accessCode);
        });
    },
    function (accessCodecallback) {
        user.getScanHistory(function(errhistory) {
            callback(err, history);
        });
    }
], function (errresult) {
    console.log(err);
    console.log(result);
});

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/