Skip to main content Link Menu Expand (external link) Document Search Copy Copied

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

📚 Experiences API Reference

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

php -f evaluate.php

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

\Kronup\Model\Experience

🔺 Back to top


evaluatePeer()

Anonymously evaluate another peer on this notion. Only the last evaluation is kept in a 24 hours interval.

#️⃣ Execute example in terminal

php -f evaluatePeer.php

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

\Kronup\Model\Experience

🔺 Back to top


list()

Retrieve all my experience models

#️⃣ Execute example in terminal

php -f list.php

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

\Kronup\Model\ExperiencesList

🔺 Back to top


listPeer()

Retrieve all experience models for this user

#️⃣ Execute example in terminal

php -f listPeer.php

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

\Kronup\Model\ExperiencesList

🔺 Back to top


read()

Retrieve my experience model for specified Notion

#️⃣ Execute example in terminal

php -f read.php

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

\Kronup\Model\Experience

🔺 Back to top


readPeer()

Retrieve peer experience model for specified Notion

#️⃣ Execute example in terminal

php -f readPeer.php

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

Return type

\Kronup\Model\Experience

🔺 Back to top