notion-dotnet / notion-sdk-net

A Notion SDK for .Net
MIT License
185 stars 46 forks source link

How to append blocks #351

Closed Scantheus closed 1 year ago

Scantheus commented 1 year ago

I'm trying to append paragraph blocks to a page and it gives me an exception. Exception claims text is not defined even though it's in the block.

Sample code and exception report attached.

Screen-2023-01-05_16-47-46 Screen-2023-01-05_16-55-35 Screen-2023-01-05_16-50-36

Scantheus commented 1 year ago

After checking out unit tests for adding blocks, I discovered I was not creating the Paragraph blocks correctly.