Hello. I'm QA Specialist Chan, the first time for the Notion API master series. This series will serialize every Monday.Currently, public APIs are two
The search method is basic Notion API. We can find a database or page with the Search method.
Last time for getting title information, we should know the composition of properties. It seems complex than more than we think, so I will explain it.
Now we can understand about composition of properties, so this turn brings the title value. Put the result data into the pages variable.
However, if we request to update rich_text information to Notion API, rich_text composition is complicated. It doesn't allow a slight difference.
Let's try to update with the prepared value.
I summarized from series 01 to 06 as source code. What a kind blogger I am. (start a rumor here)
This series lets us know how to use the method Notion API with examples.
We learned about the query, so let's try to know the parameter value.
Retrieve is an unfamiliar word (just for me). In a computer, retrieve means searching. (I think search is better than it)
Before "create a page," API Bot has to have write rights. Click the share button and add the bot, but we have a curious thing. (What?)
We can add block arrays through children. By the way, what does block mean?
We already tried to create a page, so the Update page is it to do easy. But I'm a kind guy, so explain carefully about the Update page.
Already mentioned partly from Analysis -Retrieve a page, but there's one more point.
Retrieve a block, Retrieve block children We learned about the page, so let's look into the block.
Open the link and check the left menu order. The first order is not 'Add a block' or 'Create a block' and even show 'Update a block'.
block doesn't support 'create' but available append. Python user is a familiar word about append. It is a method for adding value to a list.
We could predict that we can call 'Delete a block' with knowing block_id. For deleting specific block_id, let's call blocks.children.list.
The database is bunch of a page. We can bring the data through the query we want. First, get database_id via search and do retrieve.
'parent' value is from 'parent' of 'page'. In other words, creating the 'parent' page is available. It is unavailable 'parent' database to create a da
Let's update the database. We can change the 'title' of 'database' or 'properties' value with this method.
We try to retrieve for getting database information. Use the search method for bringing database_id.
We can inquire with API for the whole user. user_list = notion.users.list()
It's not the end. Chan is back again. For this time, I serialize for the Sync Block function.