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:
cryptographylibrary +requests
Usage
Each request to Baokim API requires 3 basic steps:
- Get JWT Token — call OAuth API with
client_idandclient_secret. - Sign request body — use RSA private key to create SHA256withRSA signature, base64 encode.
- Send request — attach
Authorization: Bearer <token>andSignature: <signed>to headers.