demo blog
March 13, 2024
Basic
text
text gray brown orange yellow green blue purple pink red
bg-text bg-gray bg-brown bg-orange bg-yellow bg-green bg-blue bg-purple bg-pink bg-red
Integrations use the API to access Notion's pages, databases, and users. Integrations can connect services to Notion and build interactive experiences for users within Notion. Using the navigation on the left, you'll find details for objects and endpoints used in the API.
todo
Toggle & Callout & Quote
callout
It's the children of a toggle!
- list in toggle
- sub list in toggle
toggle over
toggle in list
content in toggle
Richelle E. Goodrich"The direction you choose to face determines whether you’re standing at the end or the beginning of a road."
Lacey Sturm
"God is so good to give us new days and New Years since He knows we need so many times to start over."
quote
Column
c1
column h2
The base URL to send all API requests is https://api.notion.com. HTTPS is required for all API requests.
The Notion API follows RESTful conventions when possible, with most operations performed via GET, POST, PATCH, and DELETE requests on page and database resources. Request and response bodies are encoded as JSON.
c2
- list item 1
- list item 2
c3
- number list 1
- number list 2
togg in column
hidding content
Callout & Link
Susan Rebecca White"What a seductive belief—that one can start fresh simply by jettisoning one’s history, that one can leave all that is painful or unsavory behind."
Table
Company | Contact | Country |
Alfreds Futterkiste | Maria Anders | Germany |
Centro comercial Moctezuma | Francisco Chang | Mexico |
Company | Contact | Country |
---|---|---|
Alfreds Futterkiste | Maria Anders | Germany |
Centro comercial Moctezuma | Francisco Chang | Mexico |
🪄 Code
export const getDatabase = async (databaseId) => {
const response = await notion.databases.query({
database_id: databaseId,
});
return response.results;
};
Link preview & bookmark
bookmark in toggle
PDF & fiels
file blocks
Embed
Equation
f\left(\left[\frac{1+\{x, y\}}{\left(\frac{x}{y}+\frac{y}{x}\right)(u+1)}+a\right]^{3 / 2}\right)\tag{行标}\tau_{xy}=-\tau_{yx}\tau_{xz}=-\tau_{zx}\tau_{yz}=-\tau{zy}code blocks
graph TD
Mermaid --> Diagram
// FromFediAPI wraps a message that travels from the federating API into the processor.
type FromFediAPI struct {
APObjectType string
APActivityType string
APIri *url.URL
APObjectModel interface{} // Optional AP model of the Object of the Activity. Should be Accountable or Statusable.
GTSModel interface{} // Optional GTS model of the Activity or Object.
ReceivingAccount *gtsmodel.Account // Local account which owns the inbox that this Activity was posted to.
}
version: '3'
env:
ENV: testing
dotenv: ['.env', '{{.ENV}}/.env.', '{{.HOME}}/.env']
tasks:
greet:
cmds:
- echo "Using $KEYNAME and endpoint $ENDPOINT"
subpage
Images
External Image
Tables
Country | Price |
---|---|
Sweden | 100 SEK |
USA | $10 |
China | ¥100 |
A very long long long long long long long long long A very long long long long long long long long long |
synced blocks
here is a orignal synced blocks
Synced block
Similar to the Notion UI, there are two versions of a synced_block object: the original block that was created first and doesn't yet sync with anything else, and the duplicate block or blocks synced to the original.
Original synced block objects contain the following information within the synced_block property:
Field | Type | Description |
synced_from | null | The value is always null to signify that this is an original synced block that does not refer to another block. |
children | array of block objects | The nested child blocks, if any, of the synced_block block. These blocks will be mirrored in the duplicate synced_block. |
here is a block synced from others blocks
Synced block
Similar to the Notion UI, there are two versions of a synced_block object: the original block that was created first and doesn't yet sync with anything else, and the duplicate block or blocks synced to the original.
Original synced block objects contain the following information within the synced_block property:
Field | Type | Description |
synced_from | null | The value is always null to signify that this is an original synced block that does not refer to another block. |
children | array of block objects | The nested child blocks, if any, of the synced_block block. These blocks will be mirrored in the duplicate synced_block. |