lib/provider.js
function Boxcar(providerKey, providerSecret) {
    if (!providerKey) {
            throw new Error('Must supply a valid API key');
        return;
    }

    this.providerKey = providerKey;
    this.providerSecret = providerSecret;

    this.provider_url = '/devices/providers/' + this.providerKey + '/notifications';
    this.options = {
        hostname: 'boxcar.io',
        port: 443,
        method: 'POST'
    };
}
function Boxcar(providerKey, providerSecret) {
    if (!providerKey) {
            throw new Error('Must supply a valid API key');
        return;
    }

    this.providerKey = providerKey;
    this.providerSecret = providerSecret;

    this.provider_url = '/devices/providers/' + this.providerKey + '/notifications';
    this.options = {
        hostname: 'boxcar.io',
        port: 443,
        method: 'POST'
    };
}
function Boxcar ( providerKey , providerSecret ) { if ( ! providerKey ) { throw new Error ( 'Must supply a valid API key' ) ; return ; } this . providerKey = providerKey ; this . providerSecret = providerSecret ; this . provider_url = '/devices/providers/' + this . providerKey + '/notifications' ; this . options = { hostname : 'boxcar.io' , port : 443 , method : 'POST' } ; }
constructor
constructor