Skip to main content

SDK

With the SDK we can perform Kontenbase built-in features for:

  • Auth
  • Service
  • Realtime
  • Storage

JavaScript

Installation via NPM

npm install @kontenbase/sdk

Installation via CDN

<script src="https://cdn.jsdelivr.net/npm/@kontenbase/sdk"></script>

Usage

Configure the package with your project's API Key obtained from the dashboard or project settings.

ES Modules:

import { KontenbaseClient } from '@kontenbase/sdk'

const kontenbase = new KontenbaseClient({ apiKey: 'YOUR_API_KEY' })

CommonJS:

const { KontenbaseClient } = require('@kontenbase/sdk')

const kontenbase = new KontenbaseClient({ apiKey: 'YOUR_API_KEY' })

PHP

Installation

composer require kontenbase/sdk

Usage

Before you begin, you need to sign up on Kontenbase Dashboard to retrieve an API key of your project.

Create a client

<?php

use Kontenbase\KontenbaseClient;

$kontenbase = new KontenbaseClient([
'apiKey': 'YOUR_API_KEY' // Your API Key from app.kontenbase.com
]);

Go

Installation

go get -u github.com/kontenbase/kontenbase-go

Usage

Before you begin, you need to sign up on Kontenbase Dashboard to retrieve an API key of your project.

Create a client

client := kontenbase.NewClient("YOUR_API_KEY", kontenbase.DefaultURL())