XMan 开发者文档
欢迎使用 XMan API!这里你可以找到将收藏功能集成到应用所需的一切资源。
快速开始
# 安装 SDK
npm install @xman/sdk
# 初始化客户端
import { XMan } from '@xman/sdk';
const client = new XMan({
apiKey: 'your-api-key'
});
# 创建收藏
const bookmark = await client.bookmarks.create({
url: 'https://example.com',
title: 'Example Page',
tags: ['example', 'test']
});
console.log(bookmark.id);API 基础信息
- Base URL
- https://api.xman.ink/v1
- 认证方式
- Bearer Token (API Key)
- 响应格式
- JSON