function OktaAPISessions(apiToken, domain, preview)
{
    if(apiToken == undefined || domain == undefined) 
    {
        throw new Error("OktaAPI requires an API token and a domain");
    }
    this.domain = domain;
    if(preview == undefined) this.preview = false;
    else this.preview = preview;
    this.request = new NetworkAbstraction(apiToken, domain, preview);
}
function OktaAPISessions(apiToken, domain, preview)
{
    if(apiToken == undefined || domain == undefined) 
    {
        throw new Error("OktaAPI requires an API token and a domain");
    }
    this.domain = domain;
    if(preview == undefined) this.preview = false;
    else this.preview = preview;
    this.request = new NetworkAbstraction(apiToken, domain, preview);
}
function OktaAPISessions ( apiToken , domain , preview ) { if ( apiToken == undefined || domain == undefined ) { throw new Error ( "OktaAPI requires an API token and a domain" ) ; } this . domain = domain ; if ( preview == undefined ) this . preview = false ; else this . preview = preview ; this . request = new NetworkAbstraction ( apiToken , domain , preview ) ; }
Instantiate a new Okta API Sessions helper with the given API token
@param apiToken
@param domain
@param preview
@constructor
Instantiate a new Okta API Sessions helper with the given API token