HMAC 서명, 재시도 로직, Idempotency-Key 관리를 대신 처리해 드리는 공식 SDK를 주요 언어별로 제공해 드려요. API 계약(OpenAPI 3.1)은 언어 독립적이므로 직접 클라이언트를 작성하셔도 무방해요.

PHP

// composer require kernelhost/reseller-api-php   (in development)
use KernelHost\ResellerApi\Client;

$kh = new Client(getenv('KH_KEY'), getenv('KH_SECRET'));
$products = $kh->get('/products');
$order    = $kh->post('/orders', ['product_id' => 42, 'billing_cycle' => 'monthly']);

Node.js

// npm install @kernelhost/reseller-api   (in development)
import { Client } from '@kernelhost/reseller-api';

const kh = new Client({ key: process.env.KH_KEY, secret: process.env.KH_SECRET });
const products = await kh.get('/products');
const order    = await kh.post('/orders', { product_id: 42, billing_cycle: 'monthly' });

Python

# pip install kernelhost-reseller-api   (in development)
from kernelhost_reseller_api import Client

kh = Client(key=os.environ['KH_KEY'], secret=os.environ['KH_SECRET'])
products = kh.get('/products')
order    = kh.post('/orders', product_id=42, billing_cycle='monthly')

Go

// go get github.com/kernelhost/reseller-api-go   (in development)
import "github.com/kernelhost/reseller-api-go"

kh := resellerapi.New(os.Getenv("KH_KEY"), os.Getenv("KH_SECRET"))
products, _ := kh.Get("/products")
order, _    := kh.Post("/orders", map[string]any{"product_id": 42, "billing_cycle": "monthly"})

환경에서 쓰시는 언어가 목록에 없으신가요? API는 공개된 OpenAPI 3.1 사양을 따르며, 약 20줄짜리 순수 셸 cURL 예제만으로 모든 엔드포인트를 호출하실 수 있어요. 서명 로직은 인증 페이지를 참고해 주세요.