md2notion icon indicating copy to clipboard operation
md2notion copied to clipboard

Rewrite with official Notion API

Open Cobertos opened this issue 3 years ago • 5 comments

It would be nice to use notion-sdk-py to rewrite this to target the official API.

Notion API needs to support:

  • Creating new pages
    • [ ] Creating new pages at root
    • [ ] Creating new pages elsewhere
  • Creating blocks of type
    • [ ] CodeBlock
      • [ ] Setting language
    • [ ] TextBlock
    • [ ] DividerBlock
    • [ ] HeaderBlock, SubheaderBlock, SubsubheaderBlock
    • [ ] QuoteBlock
    • [ ] NumberedListBlock
    • [ ] TodoBlock
    • [ ] BulletedListBlock
    • [ ] CollectionViewBlock
      • [ ] and add all rows
      • [ ] add titles
    • [ ] ImageBlock
      • [ ] Uploading image data from URL (or image data, we can fetch it ourselves)
    • [ ] EquationBlock

TODO: Gotta fill these in

Cobertos avatar Aug 06 '21 02:08 Cobertos

What's the advantage of using official Notion API over what is currently working?

tonyxiao avatar Sep 21 '21 23:09 tonyxiao

I'm pretty sure they prefer the official API (I believe at one point they were throttling the old API). That and I don't think notion-py is maintained anymore

Cobertos avatar Sep 22 '21 00:09 Cobertos

Might be worth using https://github.com/jheddings/notional for this once that has reached sufficient maturity

mariusvniekerk avatar Nov 29 '21 19:11 mariusvniekerk

An unofficial API could break at any time. An official API will be supported and generally won't undergo breaking changes.

dprothero avatar Dec 31 '21 20:12 dprothero

Somebody work on this ?

Qouagga avatar Feb 24 '23 13:02 Qouagga