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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
config | Partial<ChanomhubConfig> | Configuration options |
Returns
Section titled “Returns”ChanomhubClient with articles repository and raw graphql fetcher
Example
Section titled “Example”// Public accessconst sdk = createChanomhubClient();
// With authenticationconst sdk = createChanomhubClient({ token: 'your-jwt-token' });