getPortalUrls

Function

get portal URL (home, API, and data) properties for content

get portal URL (home, API, and data) properties for content

Parameters

Parameter Type Default Notes
content Required IHubContent

Hub content

requestOptions Required IHubRequestOptions

Request options

Available requestOptions

Property Type Notes
authentication Optional UserSession
hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

a hash with the portal URLs

{
portalApiUrl:
any
portalDataUrl:
any
portalHomeUrl:
any
thumbnailUrl:
any
}

Function defined in content/src/enrichments.ts:496