侧边栏壁纸
  • 累计撰写 781 篇文章
  • 累计创建 1 个标签
  • 累计收到 1 条评论
标签搜索

Notion to Halo

Dettan
2022-03-03 / 0 评论 / 0 点赞 / 40 阅读 / 8,301 字
温馨提示:
本文最后更新于 2022-04-30,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。


更长远

分栏里的
{
    "05de13c9-1bf0-4570-8e86-430a00492d22": {
        "role": "editor",
        "value": {
            "id": "05de13c9-1bf0-4570-8e86-430a00492d22",
            "version": 19,
            "type": "image",
            "properties": {
                "source": [
                    [
                        "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/47e49ec0-0054-4f4f-aad1-777a0530e2c5/20170622131955_h4eZS.thumb.700_0.jpeg"
                    ]
                ]
            },
            "format": {
                "block_width": 700,
                "block_height": 700,
                "display_source": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/47e49ec0-0054-4f4f-aad1-777a0530e2c5/20170622131955_h4eZS.thumb.700_0.jpeg",
                "block_full_width": false,
                "block_page_width": false,
                "block_aspect_ratio": 1,
                "block_preserve_scale": true
            },
            "created_by": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "created_time": 1567760940000,
            "last_edited_by": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_time": 1567865880000,
            "parent_id": "f68dfc82-82fc-4564-88be-3dfa35de9428",
            "parent_table": "block",
            "alive": true,
            "file_ids": [
                "47e49ec0-0054-4f4f-aad1-777a0530e2c5"
            ],
            "created_by_table": "notion_user",
            "created_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_by_table": "notion_user",
            "last_edited_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0"
        }
    }
}
https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F47e49ec0-0054-4f4f-aad1-777a0530e2c5%2F20170622131955_h4eZS.thumb.700_0.jpeg?table=block&id=05de13c9-1bf0-4570-8e86-430a00492d22&width=1400&userId=405a6625-4718-4449-92db-afd0c38f7dd0&cache=v2

https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F6217bd86-c210-4aa6-ab9a-28ccb2bf4ac9%2Fb32140353c749119ff49040bdb7a9a4a.jpg?table=block&id=36aa6d35-1c26-4ea0-8b00-6d06f15975b1&spaceId=8f5d17db-bfc7-4b7e-855b-2886a043be56&width=2300&userId=405a6625-4718-4449-92db-afd0c38f7dd0&cache=v2

gif
{
    "75be04e2-8e04-41d4-ad05-c5dc635e30fd": {
        "role": "editor",
        "value": {
            "id": "75be04e2-8e04-41d4-ad05-c5dc635e30fd",
            "version": 21,
            "type": "image",
            "properties": {
                "source": [
                    [
                        "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6d4ca4c2-d325-44e6-9826-0fdf17ee07b1/3b7824ed7d91ca1750c3fbb87da30b0d.gif"
                    ]
                ]
            },
            "format": {
                "block_width": 432,
                "block_height": 126,
                "display_source": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6d4ca4c2-d325-44e6-9826-0fdf17ee07b1/3b7824ed7d91ca1750c3fbb87da30b0d.gif",
                "block_full_width": false,
                "block_page_width": false,
                "block_aspect_ratio": 0.5625,
                "block_preserve_scale": true
            },
            "created_by": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "created_time": 1569416760000,
            "last_edited_by": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_time": 1600492680000,
            "parent_id": "10471688-c09c-4347-9a98-bd56e25046d7",
            "parent_table": "block",
            "alive": true,
            "file_ids": [
                "6d4ca4c2-d325-44e6-9826-0fdf17ee07b1"
            ],
            "created_by_table": "notion_user",
            "created_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_by_table": "notion_user",
            "last_edited_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "shard_id": 245334,
            "space_id": "8f5d17db-bfc7-4b7e-855b-2886a043be56"
        }
    }
}
https://s3.us-west-2.amazonaws.com/secure.notion-static.com/6d4ca4c2-d325-44e6-9826-0fdf17ee07b1/3b7824ed7d91ca1750c3fbb87da30b0d.gif
?X-Amz-Algorithm=AWS4-HMAC-SHA256
&X-Amz-Credential=AKIAT73L2G45O3KS52Y5%2F20210113%2Fus-west-2%2Fs3%2Faws4_request
&X-Amz-Date=20210113T125647Z
&X-Amz-Expires=86400
&X-Amz-Signature=3bcc4afb0ad8a25eb4126fdef1f8d97fbf4c450c6a563a097a7f56a616952dd5
&X-Amz-SignedHeaders=host




子页面
不是用的连接, 有content包含子页面的所有顶级节点
用子页面的id直接请求loadPageChunk接口就行

table
queryCollection
{"collectionId":"026513e0-6593-4db1-abe2-2ec74c6438e7","collectionViewId":"91a37e10-7a02-49bc-af52-ad16da5abe70","query":{"aggregations":[{"property":"title","aggregator":"count"}]},"loader":{"type":"table","limit":50,"searchQuery":"","userTimeZone":"Asia/Shanghai","loadContentCover":true}}
loadPageChunk
blocks 里 有一个id 等于pageId的,里面有个content是顺序,好多block里都有content

写一个小的程序就行了, 自动运行的, 用themleaf 然后上传到
curl -X POST "http://127.0.0.1:8090/api/admin/login" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"authcode\": \"123456\", \"password\": \"@@120334526\", \"username\": \"1357885013@qq.com\"}"
"data": {
    "access_token": "fa851dc3a92848dbb9e5f6f29a965f0e",
    "expired_in": 86400,
    "refresh_token": "89317e60773748378e82334038d36315"
  }


list
content 里是有序的子内容id
"f009bd04-5059-4571-a4c0-7829b3569075": {
    "value": {
        "role": "reader",
        "value": {
            "id": "f009bd04-5059-4571-a4c0-7829b3569075",
            "version": 2,
            "type": "numbered_list",
            "properties": {
                "title": [
                    [
                        "我本想走出泥潭的,可是我不忍心让你满身泥泞"
                    ]
                ]
            },
            "format": {
                "copied_from_pointer": {
                    "id": "9ebca84d-cb92-43ab-912f-4a8527990a89",
                    "table": "block",
                    "spaceId": "bbad0211-3cc8-498f-8c79-39665c730983"
                }
            },
            "created_time": 1646570177180,
            "last_edited_time": 1646570160000,
            "parent_id": "add011f6-0df1-410b-ac9f-8f570250bc79",
            "parent_table": "block",
            "alive": true,
            "copied_from": "9ebca84d-cb92-43ab-912f-4a8527990a89",
            "created_by_table": "notion_user",
            "created_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_by_table": "notion_user",
            "last_edited_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "space_id": "bbad0211-3cc8-498f-8c79-39665c730983"
        }
    }
},
"87033d80-82c8-41c6-a159-1e5175941d81": {
    "value": {
        "role": "reader",
        "value": {
            "id": "87033d80-82c8-41c6-a159-1e5175941d81",
            "version": 5,
            "type": "callout",
            "properties": {
                "title": [
                    [
                        "柠月清风 风禾尽起",
                        [
                            [
                                "b"
                            ]
                        ]
                    ]
                ]
            },
            "content": [
                "add011f6-0df1-410b-ac9f-8f570250bc79"
            ],
            "format": {
                "page_icon": "🪙",
                "block_color": "gray_background",
                "copied_from_pointer": {
                    "id": "68066241-39ab-4ddd-8326-44d375ca5f01",
                    "table": "block",
                    "spaceId": "bbad0211-3cc8-498f-8c79-39665c730983"
                }
            },
            "created_time": 1646570177180,
            "last_edited_time": 1646570160000,
            "parent_id": "33ed9744-c861-4d51-9c42-c4edc3f7c7d3",
            "parent_table": "block",
            "alive": true,
            "copied_from": "68066241-39ab-4ddd-8326-44d375ca5f01",
            "created_by_table": "notion_user",
            "created_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_by_table": "notion_user",
            "last_edited_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "space_id": "bbad0211-3cc8-498f-8c79-39665c730983"
        }
    }
},

0

评论区