API 运行中
最后更新:2 分钟前
API 文档快速入门
CMDesk API
通过 CMDesk API 以编程方式管理远程访问会话、控制用户与设备,并获取详细报表。
快速开始
example.js
// API Anahtarı ile Kimlik Doğrulama
const cmdesk = require('@cmdesk/sdk');
const client = new cmdesk.Client({
apiKey: 'your_api_key_here',
region: 'eu-central'
});
// Yeni bir oturum başlat
const session = await client.sessions.create({
targetDeviceId: 'device_123',
options: {
quality: 'high',
recordSession: true
}
});
console.log('Oturum ID:', session.id);Webhook 载荷示例
{
"event": "session.connected",
"timestamp": "2026-03-28T10:30:00Z",
"data": {
"session_id": "sess_abc123",
"user_id": "usr_xyz789",
"device_id": "dev_def456",
"ip_address": "203.0.113.1",
"started_at": "2026-03-28T10:30:00Z"
}
}速率限制
| 套餐 | 限额 | 突发 |
|---|---|---|
| 免费版 | 100 次/小时 | 10 |
| Pro | 10,000 次/小时 | 100 |
| Enterprise | 无限制 | 1000 |