charging.ts
api.ts
import { HeyCharge } from '@heycharge/sdk';
const client = new HeyCharge({
apiKey: 'hc_live_...'
});
// Start a charging session
const session = await client.sessions.create({
chargerId: 'chrg_abc123',
userId: 'user_xyz789'
});
// Listen for events
client.on('session.started', (event) => {
console.log(`Charging: $${event.power}kW`);
}); 功能特点
移动SDK
原生iOS、Android和React Native SDK,轻松集成到应用中
REST API
通过API完整访问所有平台功能
Webhooks
实时事件通知
技术文档
详尽的文档和示例代码
技术规格
Mobile SDKs iOS SDK、Android SDK、React Native SDK
API REST API v2
认证 OAuth 2.0
Webhooks 实时事件
沙盒 完整测试环境
适用于
White-label CPO partnersApp developersSystem integrators