setupClient

fun setupClient(accessToken: String): KNotionClient

Creates a new Notion API client instance with the provided access token.

Return

A configured KNotionClient instance ready to use

Parameters

accessToken

The Notion API integration token (starts with "secret_")

Throws

if the access token is invalid or empty