列出可用的数据源集成
Last updated
Last updated
curl -X GET \
https://api.rememberizer.ai/api/v1/integrations/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
将 YOUR_JWT_TOKEN
替换为您的实际 JWT 令牌。
const getIntegrations = async () => {
const response = await fetch('https://api.rememberizer.ai/api/v1/integrations/', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_JWT_TOKEN'
}
});
const data = await response.json();
console.log(data);
};
getIntegrations();
将 YOUR_JWT_TOKEN
替换为您的实际 JWT 令牌。
import requests
def get_integrations():
headers = {
"Authorization": "Bearer YOUR_JWT_TOKEN"
}
response = requests.get(
"https://api.rememberizer.ai/api/v1/integrations/",
headers=headers
)
data = response.json()
print(data)
get_integrations()
将 YOUR_JWT_TOKEN
替换为您的实际 JWT 令牌。
{
"data": [
{
"id": 101,
"integration_type": "google_drive",
"integration_step": "authorized",
"source": "user@example.com",
"document_type": "drive",
"document_stats": {
"status": {
"indexed": 250,
"indexing": 5,
"error": 2
},
"total_size": 15000000,
"document_count": 257
},
"consent_time": "2023-06-15T10:30:00Z",
"memory_config": null,
"token_validity": true
},
{
"id": 102,
"integration_type": "slack",
"integration_step": "authorized",
"source": "workspace-name",
"document_type": "channel",
"document_stats": {
"status": {
"indexed": 45,
"indexing": 0,
"error": 0
},
"total_size": 5000000,
"document_count": 45
},
"consent_time": "2023-06-16T14:45:00Z",
"memory_config": null,
"token_validity": true
}
],
"message": "成功检索集成",
"code": "success"
}
此端点检索当前用户所有可用数据源集成的列表。响应包括有关每个集成的详细信息,包括集成类型、状态和文档统计信息。
This operation retrieves available data sources.
GET /api/v1/integrations/ HTTP/1.1
Host: api.rememberizer.ai
Accept: */*
Successful operation
{
"data": [
{
"id": 101,
"integration_type": "text",
"integration_step": "text",
"source": "text",
"document_type": "text",
"document_stats": {
"status": {
"indexed": 1,
"indexing": 1,
"error": 1
},
"total_size": 1,
"document_count": 1
},
"consent_time": "2025-05-01T11:56:27.661Z",
"memory_config": "text",
"token_validity": true
}
],
"message": "text",
"code": "text"
}