Api / Experiences
| Method | Description |
|---|---|
| 🔹 evaluate() | Evaluate myself |
| 🔹 evaluatePeer() | Evaluate peers |
| 🔹 list() | Fetch my experiences |
| 🔹 listPeer() | Fetch peer experiences |
| 🔹 read() | Fetch my notion experience |
| 🔹 readPeer() | Fetch peer notion experience |
Getting started
// Place your API Key 👇 here
$sdk = new \Kronup\Sdk();
// API Call
$sdk->api()->experiences();
evaluate()
Evaluate yourself on a notion. Only the last evaluation is kept in a 24 hours interval.
#️⃣ Execute example in terminal
Request
PUT
/xp/notions/{notionId}/grade/{grade}
Type signature
(new \Kronup\Sdk())->api()->experiences()->evaluate(
string $notion_id,
string $grade
): \Kronup\Model\Experience
Parameters
| Name | Type | Description |
|---|---|---|
| $notion_id | string | Notion ID |
| $grade | string | Grade between 1 and 10 |
Return type
evaluatePeer()
Anonymously evaluate another peer on this notion. Only the last evaluation is kept in a 24 hours interval.
#️⃣ Execute example in terminal
Request
PUT
/xp/notions/{notionId}/grade/{grade}/users/{userId}
Type signature
(new \Kronup\Sdk())->api()->experiences()->evaluatePeer(
string $notion_id,
string $grade,
string $user_id
): \Kronup\Model\Experience
Parameters
| Name | Type | Description |
|---|---|---|
| $notion_id | string | Notion ID |
| $grade | string | Grade between 1 and 10 |
| $user_id | string | User ID |
Return type
list()
Retrieve all my experience models
#️⃣ Execute example in terminal
Request
GET
/xp
Type signature
(new \Kronup\Sdk())->api()->experiences()->list(
[ int $page_number = 1, ]
[ int $page_size = 500 ]
): \Kronup\Model\ExperiencesList
Parameters
| Name | Type | Description |
|---|---|---|
| $page_number | int | [default to 1] |
| $page_size | int | [default to 500] |
Return type
listPeer()
Retrieve all experience models for this user
#️⃣ Execute example in terminal
Request
GET
/xp/users/{userId}
Type signature
(new \Kronup\Sdk())->api()->experiences()->listPeer(
string $user_id,
[ int $page_number = 1, ]
[ int $page_size = 500 ]
): \Kronup\Model\ExperiencesList
Parameters
| Name | Type | Description |
|---|---|---|
| $user_id | string | User ID |
| $page_number | int | [default to 1] |
| $page_size | int | [default to 500] |
Return type
read()
Retrieve my experience model for specified Notion
#️⃣ Execute example in terminal
Request
GET
/xp/notions/{notionId}
Type signature
(new \Kronup\Sdk())->api()->experiences()->read(
string $notion_id
): \Kronup\Model\Experience
Parameters
| Name | Type | Description |
|---|---|---|
| $notion_id | string | Notion ID |
Return type
readPeer()
Retrieve peer experience model for specified Notion
#️⃣ Execute example in terminal
Request
GET
/xp/notions/{notionId}/users/{userId}
Type signature
(new \Kronup\Sdk())->api()->experiences()->readPeer(
string $notion_id,
[ string $user_id ]
): \Kronup\Model\Experience
Parameters
| Name | Type | Description |
|---|---|---|
| $notion_id | string | Notion ID |
| $user_id | string | User ID |