Initial commit
This commit is contained in:
58
developer-front/public/docs/README.md
Normal file
58
developer-front/public/docs/README.md
Normal file
@@ -0,0 +1,58 @@
|
||||
# 觉远创智开发文档
|
||||
|
||||
欢迎使用觉远创智智能眼镜开放平台开发文档。
|
||||
|
||||
## 快速开始
|
||||
|
||||
只需几步即可开始使用智能眼镜 API。
|
||||
|
||||
### 1. 获取 API 密钥
|
||||
|
||||
首先,您需要在开发者平台注册账号并创建应用来获取 API 密钥。
|
||||
|
||||
### 2. 安装 SDK
|
||||
|
||||
选择适合您平台的 SDK 进行安装:
|
||||
|
||||
#### Android (Kotlin)
|
||||
|
||||
```kotlin
|
||||
implementation 'com.smartglasses:api:2.1.0'
|
||||
```
|
||||
|
||||
#### iOS (Swift)
|
||||
|
||||
```swift
|
||||
.podspec dependency 'SmartGlassesAPI', '~> 2.1.0'
|
||||
```
|
||||
|
||||
#### Web (JavaScript)
|
||||
|
||||
```bash
|
||||
npm install smartglasses-api
|
||||
```
|
||||
|
||||
### 3. 初始化 API
|
||||
|
||||
```javascript
|
||||
// JavaScript 示例
|
||||
const glasses = new SmartGlassesAPI({
|
||||
apiKey: 'your-api-key',
|
||||
deviceId: 'your-device-id'
|
||||
});
|
||||
|
||||
// 连接到设备
|
||||
glasses.connect().then(() => {
|
||||
console.log('设备连接成功');
|
||||
});
|
||||
```
|
||||
|
||||
## 目录
|
||||
|
||||
- [设备端开发](device-dev.md)
|
||||
- [移动端开发](mobile-dev.md)
|
||||
- [后台接入](backend-integrations.md)
|
||||
- [能力中心](capabilities.md)
|
||||
- [API 参考](api-reference.md)
|
||||
- [最佳实践](best-practices.md)
|
||||
|
||||
Reference in New Issue
Block a user