Get a page in a specific project.
A page in core may be have changes that aren't yet published, these are stored in a separate variant of the page (the 'unpublished' variant). When requesting a page for core, the 'published' variant is retrieved, unless there is none (the page has never been published yet), in which case the unpublished variant is fetched.

getPage(environment, xAuthToken, 'vA1b2', 'pages/home', 'reference-spa')
.then(response => console.log(response.data))
.catch(error => console.error(error));
  • Parameters

    • environment: string

      Environment name: https://{{environment}}.bloomreach.io

    • xAuthToken: string

      BrX API Token

    • channel: string

      Specifies the channel this page is associated with

    • path: string

      Relative path of page. It is appended to the content root path of the given channel

    • projectId: string

      Specifies the project content is fetched from

    Returns AxiosPromise