Bỏ qua

Lấy tất cả kiến thức công khai đã thêm

GET /common-knowledge/subscribed-list/

Ví dụ Yêu Cầu

curl -X GET   
  https://api.rememberizer.ai/api/v1/common-knowledge/subscribed-list/   
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Info

Thay thế YOUR_JWT_TOKEN bằng mã thông báo JWT thực tế của bạn.

const getPublicKnowledge = async () => {
  const response = await fetch('https://api.rememberizer.ai/api/v1/common-knowledge/subscribed-list/', {
    method: 'GET',
    headers: {
      'Authorization': 'Bearer YOUR_JWT_TOKEN'
    }
  });

  const data = await response.json();
  console.log(data);
};

getPublicKnowledge();

Info

Thay thế YOUR_JWT_TOKEN bằng mã thông báo JWT thực tế của bạn.

import requests

def get_public_knowledge():
    headers = {
        "Authorization": "Bearer YOUR_JWT_TOKEN"
    }

    response = requests.get(
        "https://api.rememberizer.ai/api/v1/common-knowledge/subscribed-list/",
        headers=headers
    )

    data = response.json()
    print(data)

get_public_knowledge()

Info

Thay thế YOUR_JWT_TOKEN bằng mã thông báo JWT thực tế của bạn.

Định dạng Phản hồi

[
  {
    "id": 1,
    "num_of_subscribers": 76,
    "publisher_name": "Rememberizer AI",
    "published_by_me": false,
    "subscribed_by_me": true,
    "size": 66741,
    "created": "2023-01-15T14:30:00Z",
    "modified": "2023-05-20T09:45:12Z",
    "priority_score": 2.053,
    "name": "Tài liệu Rememberizer",
    "image_url": "https://example.com/images/rememberizer-docs.png",
    "description": "Tài liệu và bài viết blog mới nhất về Rememberizer.",
    "api_key": null,
    "is_sharing": true,
    "memento": 159,
    "document_ids": [1234, 5678, 9012]
  }
]

Điểm cuối này truy xuất danh sách tất cả kiến thức công khai (còn được gọi là kiến thức chung) mà người dùng hiện tại đã đăng ký. Mỗi mục bao gồm siêu dữ liệu về nguồn kiến thức, chẳng hạn như ngày xuất bản, kích thước và các tài liệu liên quan.