V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
Baboonowen

可能是世界首个用 Notion 官方 API 做后端的 TG 机器人

  •  
  •   Baboonowen ·
    reycn · May 14, 2021 · 5010 views
    This topic created in 1820 days ago, the information mentioned may be changed or developed.

    我又来大佬面前献丑了。

    今天 Notion API 发布,立马改了一下 Notion 中文社区的 tg 机器人。

    使用 Notion 数据库为后端,以支持不熟悉代码的人的管理员编辑修改自动回复,非常友好——

    关键是还免费。

    亲测 Notion API 文档虽然尚不完整,但是设计比较好,可玩性非常高。

    img

    项目地址: https://github.com/reycn/notion-help-bot
    几行代码的 API 文件直达: https://github.com/reycn/notion-help-bot/blob/main/api.py

    Supplement 1  ·  May 14, 2021
    新增中文说明: https://github.com/reycn/notion-help-bot/blob/main/README_ZH.MD
    因为有 v 友说英文阅读不便~~
    16 replies    2021-05-24 12:15:28 +08:00
    zwxharry
        1
    zwxharry  
       May 14, 2021 via iPhone
    可以做一个联动快捷指令嘛?这样可以拿来记账,取代 airtable 。
    xinyana
        2
    xinyana  
       May 14, 2021 via Android
    中国人看中国人的文档,要用谷歌翻译,很是头疼
    matrix67
        3
    matrix67  
       May 14, 2021
    手够快的啊!!
    Baboonowen
        4
    Baboonowen  
    OP
       May 14, 2021
    Baboonowen
        5
    Baboonowen  
    OP
       May 14, 2021
    @zwxharry 我暂时没有这个想法,但是是个好 case~
    Baboonowen
        6
    Baboonowen  
    OP
       May 14, 2021
    @matrix67 手痒痒哈哈
    matrix67
        7
    matrix67  
       May 14, 2021
    @Baboonowen #6 赶上我志摩凛的小摩托~~
    catoncat
        8
    catoncat  
       May 15, 2021 via iPhone
    又有人在高价收账号,难道是因为 API 出来了,都要当免费数据库用?
    Baboonowen
        9
    Baboonowen  
    OP
       May 15, 2021
    @crs0910 我觉得是存在这种可能的…… 但是其实应该是有一些频率限制的吧?还没有研究,毕竟我这个 case 频率很低。
    saltbo
        10
    saltbo  
       May 15, 2021
    page_id 是啥啊 试了下 Copy link 出来的那个 id 不行啊
    saltbo
        11
    saltbo  
       May 15, 2021
    我想获取一个页面的内容 一直 404 是什么鬼
    Baboonowen
        12
    Baboonowen  
    OP
       May 15, 2021
    @saltbo 你看看官方文档那里,有复制错吗?还有就是有没有给你的 integration 权限?
    saltbo
        14
    saltbo  
       May 15, 2021   ❤️ 1
    我搞明白了

    Retrieve a page 接口要求上一级页面设置 integration 权限
    如果只给当前页面 integration 权限,那只能调用 Retrieve block children 接口
    mufeng
        15
    mufeng  
       May 17, 2021   ❤️ 1
    zwxharry
        16
    zwxharry  
       May 24, 2021
    @mufeng 谢谢,那是另一种应用,和快捷指令不同
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3112 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 15:06 · PVG 23:06 · LAX 08:06 · JFK 11:06
    ♥ Do have faith in what you're doing.