You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// RequirevarBanner=require('self-service-banner');// Create and configure instancevarbanner=Banner({// Required"host": "https://ssb-nlive.smu.ca",// Optional: Required only for authenticated requests (Login)"username": creds.username,"password": creds.password});// Optional: all authenticated requests will implicitly call login before, if not already logged inbanner.login(/* optionally pass the credentials as argument to login method */).then(function(){// Is logged in.// All subsequent requests will use this authentication.// Only a single session is stored for this banner instance,// therefore logging in again will create a new session with Banner's server}).catch(function(error){// Could not log in. Banner occurred...console.error(error);});// Unauthenticated request// Does not request login or user credentialsbanner.terms().then(function(terms){console.log(terms);// Array of terms});// Authenticated request// Requires user credentials// Will login before if not previously logged inbanner.weekAtAGlance().then(function(weekSchedule){// Courses for this week's schedule// For the currently logged in user});
/cc @valencik
The text was updated successfully, but these errors were encountered: