Pages client

The SDK provides a Pages client to retrieve pages by:

  • Identifier

  • Name

  • ID

Note

In the following code example, the client variable refers to the ContentHubClient instance. When using the JavaScript SDK, you can choose your own variable name, but it is called client at instantiation in the documentation.

Get a page by ID

For example, the following snippet gets the Actions page by ID:

RequestResponse

const page = await client.pages.getPageByIdAsync(6804);

Do you have some feedback for us?

If you have suggestions for improving this article,