Class: WebPortalSession

Wrapper.WebPortalSession(resp)

Class representing a session with the web portal

Constructor

new WebPortalSession(resp)

Creates a WebPortalSession instance from API response
Parameters:
Name Type Description
resp Object Response object from login API
Properties
Name Type Description
regdata Object Registration data containing user details
Properties
Name Type Description
institutelist Array List of institutes user has access to
memberid string Member ID of the user
userid string User ID
token string Token for authentication
clientid string Client ID
membertype string Type of member
name string Name of the user
enrollmentno string Enrollment number
Source:

Methods

(async) get_headers() → {Promise.<Object>}

Generates authentication headers for API requests
Source:
Returns:
Headers object containing Authorization and LocalName
Type
Promise.<Object>