提供 RESTful API、Webhook、OAuth2.0 多种接入方式,对接 ERP / CRM / 小程序 / 企业微信等任意系统。 API 调用永久免费,文档详尽,SDK 齐全。
标准 HTTP 接口
事件实时推送
安全授权
PHP / Java / Go
一个真实的 API 调用示例,展示完整对接流程
// 接入流程示例:创建一个 CRM 客户 const hnwysp = require('@hnwysp/sdk'); const client = new hnwysp.Client({ apiKey: 'sk_live_xxxxxxxxxxxxxxxx', apiSecret: 'xxxxxxxxxxxxxxxxxxxxxxxx', }); // 1. 调用 API 创建客户 const customer = await client.crm.customers.create({ name: '张经理', phone: '13800138000', company: '上海某某科技有限公司', industry: '制造业', source: '官网表单', tags: ['高意向', '华北'], }); console.log(customer.id); // => cus_20260814001286 // 2. Webhook 实时接收事件 import express from 'express'; const app = express(); app.post('/hnwysp/webhook', (req, res) => { const event = req.body; if (event.type === 'customer.updated') { // 客户信息更新,同步到你的 ERP } res.json({ ok: true }); });
POST /crm/customersGET /crm/customersPUT /crm/customers/:idDELETE /crm/customers/:idPOST /shop/ordersGET /shop/productsGET /shop/stock/:skuWebhookGET /analyticsGET /analytics/goalPOST /marketing/emailPOST /marketing/sms