dstotijn / go-notion

Go client for the Notion API.
MIT License
380 stars 39 forks source link

Could not get Block children ID in function FindBlockChildrenByID #49

Closed datphamcode295 closed 1 year ago

datphamcode295 commented 1 year ago

When I call the api https://api.notion.com/v1/blocks/{block_id}/children, it return the block in clude the block id. In my case, the block contain the table, so I need the id to query formation in the table. But when I use the funtion FindBlockChildrenByID it only return the title of the table and the id is the private variable, so I can not read it.

There is any solution for me to get the id of children block of a page. Or I should call API instead of using this library for my problem.

dstotijn commented 1 year ago

The Block interface has an ID() method that you can use.

datphamcode295 commented 1 year ago

thank you !!!