Api / Notions
Method | Description |
---|---|
🔹 create() | Create notion |
🔹 delete() | Delete notion |
🔹 read() | Fetch notion |
🔹 search() | Search notions |
🔹 update() | Update notion |
Getting started
// Place your API Key 👇 here
$sdk = new \Kronup\Sdk();
// API Call
$sdk->api()->notions();
create()
Define a notion
#️⃣ Execute example in terminal
Request
POST
/notions
Type signature
(new \Kronup\Sdk())->api()->notions()->create(
\Kronup\Model\PayloadNotionCreate $payload_notion_create
): \Kronup\Model\Notion
Parameters
Name | Type | Description |
---|---|---|
$payload_notion_create | \Kronup\Model\PayloadNotionCreate |
Return type
delete()
Delete a notion model. This also removes the associated Experiences for all users in this Organization.
#️⃣ Execute example in terminal
Request
DELETE
/notions/{notionId}
Type signature
(new \Kronup\Sdk())->api()->notions()->delete(
string $notion_id
): bool
Parameters
Name | Type | Description |
---|---|---|
$notion_id | string | Notion ID |
Return type
bool
read()
Retrieve notion model
#️⃣ Execute example in terminal
Request
GET
/notions/{notionId}
Type signature
(new \Kronup\Sdk())->api()->notions()->read(
string $notion_id
): \Kronup\Model\Notion
Parameters
Name | Type | Description |
---|---|---|
$notion_id | string | Notion ID |
Return type
search()
Get a list of notion models
#️⃣ Execute example in terminal
Request
GET
/notions
Type signature
(new \Kronup\Sdk())->api()->notions()->search(
[ string $search_term, ]
[ int $page_number = 1, ]
[ int $page_size = 500 ]
): \Kronup\Model\NotionsList
Parameters
Name | Type | Description |
---|---|---|
$search_term | string | Search term |
$page_number | int | [default to 1] |
$page_size | int | [default to 500] |
Return type
update()
Update notion
#️⃣ Execute example in terminal
Request
POST
/notions/{notionId}
Type signature
(new \Kronup\Sdk())->api()->notions()->update(
string $notion_id,
\Kronup\Model\PayloadNotionUpdate $payload_notion_update
): \Kronup\Model\Notion
Parameters
Name | Type | Description |
---|---|---|
$notion_id | string | Notion ID |
$payload_notion_update | \Kronup\Model\PayloadNotionUpdate |