Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否把文档最新编辑时间也导出来呢 =。=? #10

Open
jlwebs opened this issue Dec 10, 2023 · 1 comment
Open

能否把文档最新编辑时间也导出来呢 =。=? #10

jlwebs opened this issue Dec 10, 2023 · 1 comment

Comments

@jlwebs
Copy link

jlwebs commented Dec 10, 2023

是否可行呢?
没有文档创建时间或者最新修改时间 的话有点不好跟踪

@renyunkang
Copy link
Owner

renyunkang commented Dec 11, 2023

可行的, 可以用这个接口 https://www.yuque.com/api/docs?book_id={your doc id} 试试,会返回很多数据元信息

{
    "id": xx,
    "space_id": 0,
    "type": "Doc",
    "sub_type": null,
    "title": "xx",
    "title_draft": null,
    "tag": null,
    "slug": "xx",
    "user_id": xx,
    "book_id": xx,
    "last_editor_id": xxx,
    "cover": "https://cdn.nlark.com/yuque/xxx",
    "description": "xxxx",
    "custom_description": null,
    "format": "lake",
    "status": 1,
    "read_status": 1,
    "view_status": 0,
    "public": 0,
    "draft_version": 11,
    "comments_count": 0,
    "likes_count": 0,
    "content_updated_at": "2023-05-02T10:26:00.000Z",
    "created_at": "2021-11-27T10:16:49.000Z",
    "updated_at": "2023-05-02T10:26:00.000Z",
    "published_at": "2023-05-02T10:26:00.000Z",
    "first_published_at": "2021-11-27T10:17:11.000Z",
    "word_count": 667,
    "selected_at": null,
    "pinned_at": null,
    "meta": {
        "privacy_migrated": true
    },
    "read_count": null,
    "editor_meta": "xx",
    "editor_meta_draft": "xx",
    "region": "xx",
    "privacy_migrated": true,
    "book": null,
    "user": null,
    "last_editor": null,
    "share": null,
    "_serializer": "web.doc"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants