Skip to main content

SDKs

Supported Languages

Currently Baokim does not provide an official SDK. Merchants integrate directly via HTTP REST API with any language that supports HTTP client and RSA signing, including: PHP, Java, Python, Node.js, C#, Go, etc.

SDK Installation

Merchants use existing HTTP and RSA libraries available in their programming language. Examples:

  • PHP: openssl_sign() + curl
  • Java: java.security.Signature + HttpClient
  • Node.js: crypto.createSign() + axios
  • Python: cryptography library + requests

Usage

Each request to Baokim API requires 3 basic steps:

  1. Get JWT Token — call OAuth API with client_id and client_secret.
  2. Sign request body — use RSA private key to create SHA256withRSA signature, base64 encode.
  3. Send request — attach Authorization: Bearer <token> and Signature: <signed> to headers.