Skip to content

Function: createChanomhubClient()

function createChanomhubClient(config): ChanomhubClient;

Defined in: index.ts:95

Creates a Chanomhub API client

This is the main entry point for the SDK. It creates a client that can be used to interact with the Chanomhub API.

ParameterTypeDescription
configPartial<ChanomhubConfig>Configuration options

ChanomhubClient

ChanomhubClient with articles repository and raw graphql fetcher

// Public access
const sdk = createChanomhubClient();
// With authentication
const sdk = createChanomhubClient({ token: 'your-jwt-token' });