API

Initialize

The `initialize` method sets up the CapHog SDK with your project ID.

Prerequisites

Please ensure you have created a CapHog project and have your project ID ready.

Usage

import { CapHog } from '@caphog/sdk'

CapHog.initialize({ projectId: 'your-project-id' })

Replace 'your-project-id' with your actual CapHog project ID.

Parameters

  • config (object, required): An object containing the configuration for the SDK.
    • projectId (string, required): Your CapHog project ID. This is essential for the SDK to function correctly.

Copyright © 2025