ਸ਼ੁਰੂਆਤ ਕਰੋ API ਸਾਧਾਰਨ JSON over HTTPS ਹੈ। ਤင်ੀ ਕਦਮਾਂ ਵਿੱਚ ਤੁਸੀਂ ਸਿਫ਼ਰ ਤੋਂ ਲਾਈਵ ਪਾਠ ਤੱਕ ਪਹੁੰਚ ਜਾਂਦੇ ਹੋ।
1 ਕੁੰਜੀ ਬਣਾਓ ਆਪਣੇ Tutorio ਖਾਤੇ ਵਿੱਚ ਇੰਟੀਗ੍ਰੇਸ਼ਨ ਖੋਲ੍ਹੋ ਅਤੇ ਇੱਕ API ਕੁੰਜੀ ਬਣਾਓ। ਇਹ ਸਿਰਫ਼ ਇੱਕ ਵਾਰ ਦਿਖਾਈ ਜਾਂਦੀ ਹੈ, ਇਸ ਲਈ ਇਸਨੂੰ ਕਿਸੇ ਸੁਰੱਖਿਅਤ ਥਾਂ ਤੇ ਕਾਪੀ ਕਰ ਲਓ।
2 ਜਾਂਚੋ ਕਿ ਕੰਮ ਕਰਦੀ ਹੈ GET /me ਨੂੰ ਕਾਲ ਕਰੋ। ਇਹ ਉਸ ਖਾਤੇ ਨਾਲ ਜਵਾਬ ਦਿੰਦਾ ਹੈ ਜਿਸਦੀ ਇਹ ਕੁੰਜੀ ਹੈ।
3 ਬੋਰਡ ਬਣਾਓ POST /boards ਨੂੰ ਕਾਲ ਕਰੋ, ਫਿਰ ਹր ਵਿਅਕਤੀ ਲਈ ਇੱਕ ਸਾਈਨ-ਇਨ ਲਿੰਕ ਬਣਾਓ।
ਕੁੰਜੀ ਦੀ ਜਾਂਚ ਕਰੋ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/me \
-H "Authorization: Bearer tut_your_key"ਪ੍ਰਮਾਣੀਕਰਨ ਹਰ ਕਾਲ ਤੇ ਆਪਣੀ ਕੁੰਜੀ ਨੂੰ ਬੀਅਰ ਟੋਕਨ ਵਜੋਂ ਭੇਜੋ। ਕੁੰਜੀਆਂ tut_ ਨਾਲ ਸ਼ੁਰੂ ਹੁੰਦੀਆਂ ਹਨ, ਇੱਕ ਐਕਟਿਵ ਪਲਾਨ ਵਾਲੇ ਟਿਊਟਰ ਖਾਤੇ ਨਾਲ ਸਬੰਧਤ ਹੁੰਦੀਆਂ ਹਨ, ਅਤੇ ਉਸ ਖਾਤੇ ਦੇ ਬੋਰਡਾਂ ਤੱਕ ਪਹੁੰਚਦੀਆਂ ਹਨ (ਅਤੇ, ਇੱਕ ਸੰਸਥਾ ਲਈ, ਉਸਦੇ ਟਿਊਟਰਾਂ ਦੇ ਬੋਰਡਾਂ ਤੱਕ)।
ਹੈਡਰ ਕਾਪੀ ਕਰੋ Authorization: Bearer tut_your_key ਕੁੰਜੀਆਂ ਨੂੰ ਆਪਣੇ ਸਰਵਰ ਤੇ ਰੱਖੋ। ਕਦੇ ਵੀ ਕਿਸੇ ਵੈੱਬ ਪੇਜ ਜਾਂ ਐਪ ਵਿੱਚ ਨਾ ਪਾਓ।
ਗਲਤੀਆਂ ਅਤੇ ਸੀਮਾਵਾਂ ਅਸਫ਼ਲ ਕਾਲ ਹੋਣ 'ਤੇ ਇੱਕ ਸਟੇਟਸ ਕੋਡ ਅਤੇ ਇੱਕ ਨਿਰਧਾਰਿਤ ਫਾਰਮੈਟ ਵਿੱਚ ਜਵਾਬ ਮਿਲਦਾ ਹੈ। ਹਰੇਕ ਕੁੰਜੀ ਤੋਂ ਪ੍ਰਤੀ ਮਿੰਟ ਲਗਭਗ 120 ਬੇਨਤੀਆਂ ਕੀਤੀਆਂ ਜਾ ਸਕਦੀਆਂ ਹਨ; ਉਸ ਤੋਂ ਬਾਅਦ ਤੁਹਾਨੂੰ ਸਕਿੰਟਾਂ ਵਿੱਚ Retry-After ਹੈੱਡਰ ਦੇ ਨਾਲ 429 ਮਿਲੇਗਾ। ਓਨਾ ਸਮਾਂ ਉਡੀਕ ਕਰੋ, ਫਿਰ ਅੱਗੇ ਵਧੋ।
ਗਲਤੀ ਬਾਡੀ ਕਾਪੀ ਕਰੋ {
"error" : {
"code" : "not_found" ,
"message" : "There is no board with that code on this account."
}
}ਗਲਤੀ ਕੋਡ bad_json400 ਬਾਡੀ ਵੈਧ JSON ਨਹੀਂ ਹੈ। invalid_request400 ਕੋਈ ਖੇਤਰ ਗਾਇਬ ਹੈ ਜਾਂ ਮਨਜ਼ੂਰ ਨਹੀਂ ਹੈ। ਸੁਨੇਹਾ ਦੱਸਦਾ ਹੈ ਕਿ ਕਿਹੜਾ। missing_key401 ਆਥੋਰਾਈਜ਼ੇਸ਼ਨ ਹੈਡਰ ਵਿੱਚ ਕੋਈ ਕੁੰਜੀ ਨਹੀਂ ਭੇਜੀ ਗਈ ਸੀ। invalid_key401 ਕੁੰਜੀ ਗਲਤ ਹੈ ਜਾਂ ਮਿਟਾ ਦਿੱਤੀ ਗਈ ਹੈ। plan_required402 ਖਾਤੇ ਦਾ Tutorio ਪਲਾਨ ਐਕਟਿਵ ਨਹੀਂ ਹੈ। not_a_tutor403 ਇਹ ਕੁੰਜੀ ਉਸ ਖਾਤੇ ਦੀ ਹੈ ਜੋ ਟਿਊਟਰ ਨਹੀਂ ਹੈ। not_found404 ਇਸ ਖਾਤੇ ਤੇ ਉਸ ਕੋਡ ਜਾਂ id ਨਾਲ ਕੁਝ ਨਹੀਂ ਹੈ। rate_limited429 ਪ੍ਰਤੀ ਮਿੰਟ ਲਗਭਗ 120 ਤੋਂ ਵੱਧ ਬੇਨਤੀਆਂ। Retry-After ਲਈ ਉਡੀਕ ਕਰੋ। server_error500 ਸਾਡੀ ਗਲਤੀ। ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।
ਕੁੰਜੀ ਦੀ ਜਾਂਚ ਕਰੋ GET /api/v1/me
ਦੱਸਦਾ ਹੈ ਕਿ ਕੁੰਜੀ ਕਿਸਦੀ ਹੈ। ਕਨੈਕਸ਼ਨ ਦੀ ਜਾਂਚ ਕਰਨ ਲਈ ਇਸਦੀ ਵਰਤੋਂ ਕਰੋ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/me \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"id" : "6f1c…" ,
"name" : "Maya Patel" ,
"email" : "maya@example.com" ,
"key" : {
"id" : "key_x7Kp2mQ9aB4cDe" ,
"name" : "Booking site"
}
}ਬੋਰਡ ਬਣਾਓ POST /api/v1/boards
ਇੱਕ ਵ੍ਹਾਈਟਬੋਰਡ ਬਣਾਉਂਦਾ ਹੈ ਅਤੇ ਇਸਦਾ ਲਿੰਕ ਵਾਪس ਦਿੰਦਾ ਹੈ। external_id (ਪਾਠ, ਵਿਦਿਆਰਥੀ ਜਾਂ ਬੁਕਿੰਗ ਲਈ ਤੁਹਾਡੀ ਆਪਣੀ id) ਭੇਜੋ ਅਤੇ ਕਾਲ ਦੁਬਾਰਾ ਕਰਨ ਲਈ ਸੁਰੱਖਿਅਤ ਹੈ: ਉਹੀ id ਹمੇਸ਼ਾ ਉਹੀ ਬੋਰਡ ਵਾਪਸ ਦਿੰਦੀ ਹੈ।
ਬਾਡੀ (JSON) name ਸਰਿੰਗ ਬੋਰਡ ਦਾ ਨਾਮ ਕੀ ਹੈ। 80 ਅੱਖਰਾਂ ਤੱਕ। external_id ਸਰਿੰਗ ਇਸ ਲਈ ਕਿ ਇਹ ਬੋਰਡ ਕਿਸ ਕੰਮ ਲਈ ਹੈ, ਤੁਹਾਡੀ id। ਇਸ ਨਾਲ ਦੁਬਾਰਾ ਪੁੱਛਣ ਤੇ ਉਹੀ ਬੋਰਡ ਮਿਲਦਾ ਹੈ। host_email ਸਰਿੰਗ ਬੋਰਡ ਨੂੰ ਆਪਣੇ ਸੰਗਠਨ ਦੇ ਕਿਸੇ ਟਿਊਟਰ ਨੂੰ ਦਿਓ, ਆਪਣੇ ਆਪ ਨੂੰ ਦੇਣ ਦੀ ਬਜਾਏ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl -X POST https://tutorio.app/api/v1/boards \
-H "Authorization: Bearer tut_your_key" \
-H "Content-Type: application/json" \
-d '{"name": "Maya · Year 9 Maths", "external_id": "lesson-4821"}'ਜਵਾਬ · 201 ਕਾਪੀ ਕਰੋ {
"code" : "qm7-kx2p-vdr" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"created" : true ,
"created_at" : "2026-01-12T09:30:00Z" ,
"host_id" : "6f1c…" ,
"people_in_room" : 0
}ਬੋਰਡਾਂ ਦੀ ਸੂਚੀ GET /api/v1/boards
ਤੁਹਾਡੇ ਬੋਰਡ, ਸਭ ਤੋਂ ਪਹਿਲਾਂ ਖੋਲੇ ਗਏ।
ਕੁਅਰੀ limit integer ਕਿੰਨੇ ਵਾਪਸ ਕਰਨੇ ਹਨ। 50 ਜਦੋਂ ਤੱਕ ਤੁਸੀਂ ਨਹੀਂ ਕਹਿੰਦੇ, ਵੱਧ ਤੋਂ ਵੱਧ 200। external_id ਸਰਿੰਗ ਸਿਰਫ਼ ਇਸ id ਲਈ ਬਣਾਇਆ ਗਿਆ ਬੋਰਡ। name ਸਰਿੰਗ ਸਿਰਫ਼ ਉਹ ਬੋਰਡ ਜਿਨ੍ਹਾਂ ਦੇ ਨਾਮ ਵਿੱਚ ਇਹ ਟੈਕਸਟ ਹੈ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/boards \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"boards" : [
{
"code" : "qm7-kx2p-vdr" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr" ,
"people_in_room" : 2
}
]
}ਬੋਰਡ ਦੇਖੋ GET /api/v1/boards/{code}
ਇੱਕ ਬੋਰਡ, ਇਹ ਦੱਸਦੇ ਹੋਏ ਕਿ ਇਸ ਸਮੇਂ ਇਸ ਵਿੱਚ ਕਿੰਨੇ ਲੋਕ ਹਨ।
ਪਾਥ code string required ਬੋਰਡ ਦਾ ਕੋਡ: ਇਸਦੇ ਲਿੰਕ ਦਾ ਆਖਰੀ ਹਿੱਸਾ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/boards/qm7-kx2p-vdr \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"code" : "qm7-kx2p-vdr" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr" ,
"people_in_room" : 2
}ਬੋਰਡ ਦਾ ਨਾਂ ਬਦਲੋ PATCH /api/v1/boards/{code}
ਪਾਥ code string required ਬੋਰਡ ਦਾ ਕੋਡ: ਇਸਦੇ ਲਿੰਕ ਦਾ ਆਖਰੀ ਹਿੱਸਾ।
ਬਾਡੀ (JSON) name ਸਰਿੰਗ ਨਵਾਂ ਨਾਮ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl -X PATCH https://tutorio.app/api/v1/boards/qm7-kx2p-vdr \
-H "Authorization: Bearer tut_your_key" \
-H "Content-Type: application/json" \
-d '{"name": "Maya · Year 10 Maths"}'ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"code" : "qm7-kx2p-vdr" ,
"name" : "Maya · Year 10 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
}ਬੋਰਡ ਮਿਟਾਓ DELETE /api/v1/boards/{code}
ਬੋਰਡ, ਇਸ ਉੱਤੇ ਮੌਜੂਦ ਸਭ ਕੁਝ ਅਤੇ ਇਸਦੀਆਂ ਅੱਪਲੋਡ ਕੀਤੀਆਂ ਫ਼ਾਈਲਾਂ ਨੂੰ ਮਿਟਾ ਦਿੰਦਾ ਹੈ। ਇਸ ਨੂੰ ਵਾਪਸ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਦਾ।
ਪਾਥ code string required ਬੋਰਡ ਦਾ ਕੋਡ: ਇਸਦੇ ਲਿੰਕ ਦਾ ਆਖਰੀ ਹਿੱਸਾ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl -X DELETE https://tutorio.app/api/v1/boards/qm7-kx2p-vdr \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"deleted" : true ,
"code" : "qm7-kx2p-vdr"
}ਸਾਈਨ-ਇਨ ਲਿੰਕ ਬਣਾਓ POST /api/v1/boards/{code}/links
ਇੱਕ ਲਿੰਕ ਜੋ ਇੱਕ ਵਿਅਕਤੀ ਨੂੰ ਸਿੱਧਾ ਬੋਰਡ ਵਿੱਚ ਲਿਜਾਂਦਾ ਹੈ, ਪਹਿਲਾਂ ਹੀ ਸਾਈਨ ਇਨ ਕੀਤਾ ਹੋਇਆ। ਇਸਨੂੰ ਆਪਣੇ ਖੁਦ ਦੇ 'Join' ਬਟਨ ਦੇ ਪਿੱਛੇ ਰੱਖੋ। ਭਾਗੀਦਾਰ ਲਿੰਕ ਮਿਆਦ ਪੁੱਗਣ ਤੱਕ ਕੰਮ ਕਰਦਾ ਹੈ; external_id ਭੇਜੋ ਅਤੇ ਉਹ ਵਿਅਕਤੀ ਹਮੇਸ਼ਾ ਉਸੇ Tutorio ਖਾਤੇ ਵਿੱਚ ਵਾਪਸ ਆਉਂਦਾ ਹੈ। ਇੱਕ ਹੋਸਟ ਲਿੰਕ ਬੋਰਡ ਦੇ ਟਿਊਟਰ ਵਜੋਂ ਸਾਈਨ ਇਨ ਕਰਦਾ ਹੈ: ਇਹ ਇੱਕ ਵਾਰ ਕੰਮ ਕਰਦਾ ਹੈ ਅਤੇ ਦੱਸ ਮਿੰਟ ਤੱਕ ਰਹਿੰਦਾ ਹੈ, ਇਸ ਲਈ ਇਸਨੂੰ ਉਸ ਸਮੇਂ ਬਣਾਓ ਜਦੋਂ ਉਹ ਕਲیک ਕਰਦੇ ਹਨ।
ਪਾਥ code string required ਬੋਰਡ ਦਾ ਕੋਡ: ਇਸਦੇ ਲਿੰਕ ਦਾ ਆਖਰੀ ਹਿੱਸਾ।
ਬਾਡੀ (JSON) role ਸਰਿੰਗ "participant" (ਡਿਫੌਲਟ) ਜਾਂ "host"। name ਸਰਿੰਗ ਉਹ ਨਾਮ ਜੋ ਰੂਮ ਦਿਖਾਉਂਦਾ ਹੈ। ਭਾਗੀਦਾਰ ਲਈ ਲੋੜੀਂਦਾ ਹੈ। external_id ਸਰਿੰਗ ਇਸ ਵਿਅਕਤੀ ਲਈ ਤੁਹਾਡੀ id, ਤਾਂ ਜੋ ਉਹ ਇੱਕ ਖਾਤਾ ਰੱਖਣ। email ਸਰਿੰਗ ਉਨ੍ਹਾਂ ਦੀ ਈਮੇਲ, ਜੇ ਤੁਹਾਡੇ ਕੋਲ ਹੈ। ਸਿਰਫ਼ ਤੁਹਾਡੇ ਰਿਕਾਰਡ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ। expires_in integer ਉਹ ਸਕਿੰਟ ਜਦੋਂ ਤੱਕ ਲਿੰਕ ਕੰਮ ਕਰਨਾ ਬੰਦ ਨਹੀਂ ਕਰ ਦਿੰਦਾ। ਇੱਕ ਭਾਗੀਦਾਰ ਲਿੰਕ ਇੱਕ ਦਿਨ ਤੱਕ ਰਹਿੰਦਾ ਹੈ ਜਦੋਂ ਤੱਕ ਤੁਸੀਂ ਨਹੀਂ ਕਹਿੰਦੇ, ਵੱਧ ਤੋਂ ਵੱਧ 90 ਦਿਨ; ਇੱਕ ਹੋਸਟ ਲਿੰਕ ਦੱਸ ਮਿੰਟ, ਵੱਧ ਤੋਂ ਵੱਧ ਇੱਕ ਘੰਟਾ। embed boolean true ਤੁਹਾਡੇ ਆਪਣੇ ਪੇਜ ਉੱਤੇ ਇੱਕ iframe ਲਈ ਲਿੰਕ ਬਣਾਉਂਦਾ ਹੈ: url ਫਰੇਮ ਦਾ src ਹੈ, ਅਤੇ fallback_url ਬੋਰਡ ਆਪਣੇ ਆਪ ਵਿੱਚ ਇੱਕ ਪੇਜ ਵਜੋਂ ਹੈ। ਬੋਰਡ ਦੇ ਟਿਊਟਰ ਨੇ Integrations ਦੇ ਤਹਿਤ ਤੁਹਾਡੀ ਸਾਈਟ ਦੀ ਇਜਾਜ਼ਤ ਦਿੱਤੀ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ, ਅਤੇ ਇੱਕ ਭਾਗੀਦਾਰ ਨੂੰ external_id ਦੀ ਲੋੜ ਹੁੰਦੀ ਹੈ। ਇੱਕ ਐਬਡ ਲਿੰਕ ਸਿਰਫ਼ ਉਸ ਇੱਕ ਰੂਮ ਵਿੱਚ ਸਾਈਨ ਇਨ ਕਰਦਾ ਹੈ ਅਤੇ ਫਰੇਮ ਤੋਂ ਇਲਾਵਾ ਕਿਤੇ ਵੀ ਕੰਮ ਨਹੀਂ ਕਰਦਾ। Embedding ਦੇਖੋ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl -X POST https://tutorio.app/api/v1/boards/qm7-kx2p-vdr/links \
-H "Authorization: Bearer tut_your_key" \
-H "Content-Type: application/json" \
-d '{"role": "participant", "name": "Maya Patel", "external_id": "student-193"}'ਜਵਾਬ · 201 ਕਾਪੀ ਕਰੋ {
"url" : "https://tutorio.app/whiteboard/go/Hq3…" ,
"role" : "participant" ,
"expires_at" : "2026-01-13T09:30:00Z" ,
"single_use" : false
}ਕਿਸੇ ਬੋਰਡ ਦੇ ਸੈਸ਼ਨ GET /api/v1/boards/{code}/sessions
ਹਰ ਵਾਰ ਜτανੋਂ ਬੋਰਡ ਦੀ ਵਰਤੋਂ ਕੀਤੀ ਗਈ: ਕੌਣ ਆਇਆ, ਕਦੋਂ, ਅਤੇ ਕਿੰਨੇ ਸਮੇਂ ਲਈ।
ਪਾਥ code string required ਬੋਰਡ ਦਾ ਕੋਡ: ਇਸਦੇ ਲਿੰਕ ਦਾ ਆਖਰੀ ਹਿੱਸਾ।
ਕੁਅਰੀ limit integer ਕਿੰਨੇ ਵਾਪਸ ਕਰਨੇ ਹਨ। 50 ਜਦੋਂ ਤੱਕ ਤੁਸੀਂ ਨਹੀਂ ਕਹਿੰਦੇ, ਵੱਧ ਤੋਂ ਵੱਧ 200।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/boards/qm7-kx2p-vdr/sessions \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"sessions" : [
{
"id" : "ses_p4Vn81LkQe2zXa" ,
"started_at" : "2026-01-12T16:00:04Z" ,
"ended_at" : "2026-01-12T16:58:41Z" ,
"live" : false ,
"duration_seconds" : 3517 ,
"participants" : [
{
"id" : "6f1c…" ,
"name" : "Mr Okafor" ,
"role" : "host" ,
"joined_at" : "2026-01-12T16:00:04Z" ,
"left_at" : "2026-01-12T16:58:41Z" ,
"duration_seconds" : 3517 ,
"visits" : 1
},
{
"id" : "a20b…" ,
"name" : "Maya Patel" ,
"role" : "participant" ,
"external_id" : "student-193" ,
"joined_at" : "2026-01-12T16:01:30Z" ,
"left_at" : "2026-01-12T16:58:02Z" ,
"duration_seconds" : 3392 ,
"visits" : 2
}
]
}
]
}ਸਾਰੇ ਸੈਸ਼ਨ GET /api/v1/sessions
ਹਰ ਬੋਰਡ ਦੇ ਸੈਸ਼ਨ, ਸਭ ਤੋਂ ਨਵੇਂ ਪਹਿਲਾਂ।
ਕੁਅਰੀ since ਸਰਿੰਗ ਸਿਰਫ਼ ਉਹ ਸੈਸ਼ਨ ਜੋ ਇਸ ਸਮੇਂ 'ਤੇ ਜਾਂ ਇਸ ਤੋਂ ਬਾਅਦ ਸ਼ੁਰੂ ਹੋਏ (RFC 3339)। limit integer ਕਿੰਨੇ ਵਾਪਸ ਕਰਨੇ ਹਨ। 50 ਜਦੋਂ ਤੱਕ ਤੁਸੀਂ ਨਹੀਂ ਕਹਿੰਦੇ, ਵੱਧ ਤੋਂ ਵੱਧ 200।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/sessions \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"sessions" : []
}ਸੈਸ਼ਨ ਦੇਖੋ GET /api/v1/sessions/{id}
ਪਾਥ id string required ਸੈਸ਼ਨ ਦੀ id, ਜਿਵੇਂ ਕਿ ses_p4Vn81LkQe2zXa।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/sessions/ses_p4Vn81LkQe2zXa \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"id" : "ses_p4Vn81LkQe2zXa" ,
"live" : true ,
"started_at" : "2026-01-12T16:00:04Z" ,
"ended_at" : null ,
"participants" : []
}ਰਿਕਾਰਡਿੰਗਾਂ ਦੀ ਸੂਚੀ GET /api/v1/recordings
Finished recordings, newest first. Use /boards/{code}/recordings for one board.
ਕੁਅਰੀ limit integer ਕਿੰਨੇ ਵਾਪਸ ਕਰਨੇ ਹਨ। 50 ਜਦੋਂ ਤੱਕ ਤੁਸੀਂ ਨਹੀਂ ਕਹਿੰਦੇ, ਵੱਧ ਤੋਂ ਵੱਧ 200।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/recordings \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"recordings" : [
{
"id" : "3b9f0c2e7a1d4e68" ,
"status" : "done" ,
"started_at" : "2026-01-12T16:00:10Z" ,
"duration_seconds" : 3490 ,
"people" : [
"Mr Okafor" ,
"Maya Patel"
],
"media_url" : "https://tutorio.app/api/v1/recordings/3b9f0c2e7a1d4e68/media" ,
"has_transcript" : true
}
]
}ਰਿਕਾਰਡਿੰਗ ਦੇਖੋ GET /api/v1/recordings/{id}
ਇਸਦੀ ਸਾਰੰਸ਼ ਅਤੇ ਪੂਰੀ ਟ੍ਰਾਂਸਕ੍ਰਿਪਟ ਨਾਲ ਰਿਕਾਰਡਿੰਗ, ਇੱਕ ਵਾਰ ਜਦੋਂ ਉਹ ਲਿਖੀਆਂ ਜਾਂਦੀਆਂ ਹਨ (ਸਥਿਤੀ "done")।
ਪਾਥ id string required ਰਿਕਾਰਡਿੰਗ ਦੀ id।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/recordings/3b9f0c2e7a1d4e68 \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"id" : "3b9f0c2e7a1d4e68" ,
"status" : "done" ,
"summary" : {
"title" : "Solving linear equations" ,
"overview" : "Maya worked through…" ,
"covered" : [
"Balancing both sides"
],
"went_well" : [
"Checked every answer"
],
"work_on" : [
"Negative coefficients"
],
"next_steps" : [
"Ten mixed questions"
]
},
"transcript" : [
{
"at" : "00:14" ,
"speaker" : "Mr Okafor" ,
"text" : "Let's start with number three."
}
]
}ਰਿਕਾਰਡਿੰਗ ਡਾਊਨਲੋਡ ਕਰੋ GET /api/v1/recordings/{id}/media
ਇੱਕ ਵੀਡੀਓ ਫ਼ਾਈਲ ਵਜੋਂ ਰਿਕਾਰਡਿੰਗ ਖੁਦ। ਹਰ ਦੂਜੀ ਕਾਲ ਵਾਂਗ ਕੁੰਜੀ ਭੇਜੋ।
ਪਾਥ id string required ਰਿਕਾਰਡਿੰਗ ਦੀ id।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/recordings/3b9f0c2e7a1d4e68/media \
-H "Authorization: Bearer tut_your_key" \
-o recording.webmਵੈੱਬਹੁੱਕ ਜੋੜੋ POST /api/v1/webhooks
Tutorio will POST each event to your URL as it happens. Leave events out to get all of them. The secret in the answer signs every delivery; it is shown once, here, and never again (not in the list either), so keep it. People's names are left out of what is sent unless you ask for them with include_names: without it each participant comes with their id, your external_id for them, their role and their times, and a recording comes without its list of people and without its summary (which is written about the lesson and can name a child): the event carries "summary_available": true instead, and GET /recordings/{id} has the summary and the transcript.
ਬਾਡੀ (JSON) url string required ਘਟਨਾਵਾਂ ਕਿੱਥੇ ਭੇਜਣੀਆਂ ਹਨ। https ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ। events array ਉਹ ਇਵੈਂਟ ਕਿਸਮਾਂ ਜੋ ਤੁਸੀਂ ਚਾਹੁੰਦੇ ਹੋ। ਖਾਲੀ ਦਾ ਮਤਲਬ ਹੈ ਸਾਰੇ। include_names boolean true ਨਾਲ ਭਾਗੀਦਾਰਾਂ ਦੇ ਨਾਮ, ਰਿਕਾਰਡਿੰਗ ਵਿੱਚ ਮੌਜੂਦ ਲੋਕਾਂ ਦੇ ਨਾਮ ਅਤੇ ਰਿਕਾਰਡਿੰਗ ਦਾ ਸਾਰ ਭੇਜਿਆ ਜਾਂਦਾ ਹੈ। ਛੱਡ ਦੇਣ ਜਾਂ false ਹੋਣ 'ਤੇ, ਡਿਲੀਵਰੀ ਵਿੱਚ ਸਿਰਫ਼ id, ਰੋਲ ਅਤੇ ਸਮਾਂ ਹੀ ਹੁੰਦਾ ਹੈ। ਨਾਮ ਸਿਰਫ਼ ਉਦੋਂ ਹੀ ਮੰਗੋ ਜਦੋਂ ਤੁਹਾਨੂੰ ਲੋੜ ਹੋਵੇ: ਕਮਰੇ ਵਿੱਚ ਮੌਜੂਦ ਲੋਕ ਜ਼ਿਆਦਾਤਰ ਬੱਚੇ ਹੁੰਦੇ ਹਨ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl -X POST https://tutorio.app/api/v1/webhooks \
-H "Authorization: Bearer tut_your_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/hooks/tutorio", "events": ["session.ended", "recording.ready"]}'ਜਵਾਬ · 201 ਕਾਪੀ ਕਰੋ {
"id" : "hook_Ab3dE6gH9jK2mN" ,
"url" : "https://example.com/hooks/tutorio" ,
"events" : [
"session.ended" ,
"recording.ready"
],
"include_names" : false ,
"secret" : "whsec_…"
}ਵੈੱਬਹੁੱਕਾਂ ਦੀ ਸੂਚੀ GET /api/v1/webhooks
ਤੁਹਾਡੇ ਵੈੱਬਹੁੱਕ। ਇਹਨਾਂ ਦੇ ਸੀਕ੍ਰੇਟ ਇੱਥੇ ਸ਼ਾਮਲ ਨਹੀਂ ਹਨ: ਸੀਕ੍ਰੇਟ ਸਿਰਫ਼ ਉਦੋਂ ਹੀ ਦਿਖਾਇਆ ਜਾਂਦਾ ਹੈ ਜਦੋਂ ਵੈੱਬਹੁੱਕ ਬਣਾਇਆ ਜਾਂਦਾ ਹੈ।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl https://tutorio.app/api/v1/webhooks \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"webhooks" : [
{
"id" : "hook_Ab3dE6gH9jK2mN" ,
"url" : "https://example.com/hooks/tutorio" ,
"events" : [
"session.ended"
],
"include_names" : false ,
"disabled" : false ,
"last_status" : 200
}
]
}ਵੈੱਬਹੁੱਕ ਹਟਾਓ DELETE /api/v1/webhooks/{id}
ਪਾਥ id string required ਵੈੱਬਹੁੱਡ ਦੀ id, ਜਿਵੇਂ ਕਿ hook_Ab3dE6gH9jK2mN।
ਬੇਨਤੀ ਕਾਪੀ ਕਰੋ curl -X DELETE https://tutorio.app/api/v1/webhooks/hook_Ab3dE6gH9jK2mN \
-H "Authorization: Bearer tut_your_key"ਜਵਾਬ · 200 ਕਾਪੀ ਕਰੋ {
"deleted" : true
}ਵੈੱਬਹੁੱਕ ਈਵੈਂਟ Integrations ਵਿੱਚ ਜਾਂ POST /webhooks ਨਾਲ ਇੱਕ URL ਜੋੜੋ ਅਤੇ Tutorio ਹਰੇਕ ਇਵੈਂਟ ਨੂੰ JSON ਵਜੋਂ ਇਸ ਨੂੰ ਪੋਸਟ ਕਰਦਾ ਹੈ। 15 ਸਕਿੰਟਾਂ ਦੇ ਅੰਦਰ ਕਿਸੇ ਵੀ 2xx ਨਾਲ ਜਵਾਬ ਦਿਓ। ਜੇਕਰ ਤੁਸੀਂ ਨਹੀਂ ਕਰਦੇ, ਤਾਂ ਅਸੀਂ 5 ਸਕਿੰਟਾਂ ਬਾਅਦ ਅਤੇ 30 ਬਾਅਦ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰਦੇ ਹਾਂ। ਹਰੇਕ ਕੋਸ਼ਿਸ਼ ਇੱਕ ਹਫ਼ਤੇ ਲਈ ਡਿਲੀਵਰੀ ਲੌਗ ਵਿੱਚ ਰੱਖੀ ਜਾਂਦੀ ਹੈ, ਅਤੇ "Send a test" ਇੱਕ ping ਪੋਸਟ ਕਰਦਾ ਹੈ।
ਹਰੇਕ ਬਾਡੀ ਦਾ ਇੱਕੋ ਲਿਫ਼ਾਫ਼ਾ ਹੁੰਦਾ ਹੈ: id, type, created (ਯੂਨਿਕਸ ਸਕਿੰਟ) ਅਤੇ data।
ਲੋਕਾਂ ਦੇ ਨਾਮ ਛੱਡ ਦਿੱਤੇ ਜਾਂਦੇ ਹਨ ਜਦੋਂ ਤੱਕ ਤੁਸੀਂ ਉਨ੍ਹਾਂ ਨੂੰ ਨਹੀਂ ਮੰਗਦੇ। ਹਰੇਕ ਭਾਗੀਦਾਰ ਇੱਕ id, ਉਹ external_id ਜੋ ਤੁਸੀਂ ਉਨ੍ਹਾਂ ਨੂੰ ਦਿੱਤਾ ਹੈ, ਇੱਕ role ਅਤੇ ਉਨ੍ਹਾਂ ਦਾ ਸਮਾਂ ਲੈ ਕੇ ਆਉਂਦਾ ਹੈ, ਜੋ ਕਿ ਹੇਠਾਂ ਦਿੱਤੀਆਂ ਉਦਾਹਰਣਾਂ ਦਿਖਾਉਂਦੀਆਂ ਹਨ। include_names ਨਾਲ ਵੈੱਬਹੁੱਡ ਬਣਾਓ (ਜਾਂ Integrations ਵਿੱਚ "Include names" ਚਾਲੂ ਕਰੋ) ਅਤੇ ਹਰੇਕ ਭਾਗੀਦਾਰ ਕੋਲ ਇੱਕ name ਵੀ ਹੁੰਦਾ ਹੈ, ਅਤੇ ਇੱਕ ਰਿਕਾਰਡਿੰਗ ਕੋਲ ਇੱਕ people ਸੂਚੀ ਹੁੰਦੀ ਹੈ।
session.startedਪਹਿਲਾ ਵਿਅਕਤੀ ਬੋਰਡ ਵਿੱਚ ਦਾਖਲ ਹੁੰਦਾ ਹੈ। session.started ਕਾਪੀ ਕਰੋ {
"id" : "evt_Jq8sT2bN5wYc1R" ,
"type" : "session.started" ,
"created" : 1768233604 ,
"data" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"session" : {
"id" : "ses_p4Vn81LkQe2zXa" ,
"started_at" : "2026-01-12T16:00:04Z"
}
}
}participant.joinedਕੋਈ ਬੋਰਡ ਵਿੱਚ ਦਾਖਲ ਹੁੰਦਾ ਹੈ। participant.joined ਕਾਪੀ ਕਰੋ {
"id" : "evt_Jq8sT2bN5wYc1R" ,
"type" : "participant.joined" ,
"created" : 1768233604 ,
"data" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"participant" : {
"external_id" : "student-193" ,
"id" : "a20b4c6d-0000-4000-8000-000000000002" ,
"joined_at" : "2026-01-12T16:01:30Z" ,
"role" : "participant"
},
"session" : {
"id" : "ses_p4Vn81LkQe2zXa" ,
"started_at" : "2026-01-12T16:00:04Z"
}
}
}participant.leftਕੋਈ ਬੋਰਡ ਵਿੱਚੋਂ ਬਾਹਰ ਜਾਂਦਾ ਹੈ। participant.left ਕਾਪੀ ਕਰੋ {
"id" : "evt_Jq8sT2bN5wYc1R" ,
"type" : "participant.left" ,
"created" : 1768233604 ,
"data" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"participant" : {
"external_id" : "student-193" ,
"id" : "a20b4c6d-0000-4000-8000-000000000002" ,
"left_at" : "2026-01-12T16:58:02Z" ,
"role" : "participant"
},
"session" : {
"id" : "ses_p4Vn81LkQe2zXa" ,
"started_at" : "2026-01-12T16:00:04Z"
}
}
}session.endedਆਖਰੀ ਵਿਅਕਤੀ ਚਲਾ ਗਿਆ ਹੈ। ਸਭ ਦੀ ਹਾਜ਼ਰੀ ਸ਼ਾਮਲ ਹੈ। session.ended ਕਾਪੀ ਕਰੋ {
"id" : "evt_Jq8sT2bN5wYc1R" ,
"type" : "session.ended" ,
"created" : 1768233604 ,
"data" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"session" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"duration_seconds" : 3517 ,
"ended_at" : "2026-01-12T16:58:41Z" ,
"id" : "ses_p4Vn81LkQe2zXa" ,
"live" : false ,
"participants" : [
{
"duration_seconds" : 3517 ,
"id" : "6f1c2d3e-0000-4000-8000-000000000001" ,
"joined_at" : "2026-01-12T16:00:04Z" ,
"left_at" : "2026-01-12T16:58:41Z" ,
"role" : "host" ,
"visits" : 1
},
{
"duration_seconds" : 3392 ,
"external_id" : "student-193" ,
"id" : "a20b4c6d-0000-4000-8000-000000000002" ,
"joined_at" : "2026-01-12T16:01:30Z" ,
"left_at" : "2026-01-12T16:58:02Z" ,
"role" : "participant" ,
"visits" : 2
}
],
"started_at" : "2026-01-12T16:00:04Z"
}
}
}recording.readyਰਿਕਾਰਡਿੰਗ ਪੂਰੀ ਹੋ ਗਈ ਹੈ ਅਤੇ ਚਲਾਈ ਜਾ ਸਕਦੀ ਹੈ। recording.ready ਕਾਪੀ ਕਰੋ {
"id" : "evt_Jq8sT2bN5wYc1R" ,
"type" : "recording.ready" ,
"created" : 1768233604 ,
"data" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"recording" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"bytes" : 48211934 ,
"duration_seconds" : 3511 ,
"ended_at" : "2026-01-12T16:58:41Z" ,
"has_transcript" : false ,
"id" : "3b9f0c2e7a1d4e68" ,
"media_url" : "https://tutorio.app/api/v1/recordings/3b9f0c2e7a1d4e68/media" ,
"mime_type" : "video/webm" ,
"page_url" : "https://tutorio.app/tutor/whiteboard/recording/3b9f0c2e7a1d4e68" ,
"started_at" : "2026-01-12T16:00:10Z" ,
"status" : "ready"
}
}
}recording.transcribedਰਿਕਾਰਡਿੰਗ ਦੀ ਟ੍ਰਾਂਸਕ੍ਰਿਪਟ ਤੇ ਸਾਰ ਤਿਆਰ ਹਨ। recording.transcribed ਕਾਪੀ ਕਰੋ {
"id" : "evt_Jq8sT2bN5wYc1R" ,
"type" : "recording.transcribed" ,
"created" : 1768233604 ,
"data" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"recording" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
},
"bytes" : 48211934 ,
"duration_seconds" : 3511 ,
"ended_at" : "2026-01-12T16:58:41Z" ,
"has_transcript" : true ,
"id" : "3b9f0c2e7a1d4e68" ,
"media_url" : "https://tutorio.app/api/v1/recordings/3b9f0c2e7a1d4e68/media" ,
"mime_type" : "video/webm" ,
"page_url" : "https://tutorio.app/tutor/whiteboard/recording/3b9f0c2e7a1d4e68" ,
"started_at" : "2026-01-12T16:00:10Z" ,
"status" : "done" ,
"summary_available" : true
}
}
}board.createdAPI ਰਾਹੀਂ ਇੱਕ ਬੋਰਡ ਬਣਾਇਆ ਗਿਆ ਹੈ। board.created ਕਾਪੀ ਕਰੋ {
"id" : "evt_Jq8sT2bN5wYc1R" ,
"type" : "board.created" ,
"created" : 1768233604 ,
"data" : {
"board" : {
"code" : "qm7-kx2p-vdr" ,
"external_id" : "lesson-4821" ,
"name" : "Maya · Year 9 Maths" ,
"url" : "https://tutorio.app/whiteboard/qm7-kx2p-vdr"
}
}
}ਦਸਤਖ਼ਤਾਂ ਦੀ ਪੁਸ਼ਟੀ ਕਰਨਾ ਹਰੇਕ ਡਿਲੀਵਰੀ ਵਿੱਚ ਇੱਕ Tutorio-Signature ਹੈਡਰ ਹੁੰਦਾ ਹੈ: t=<unix>,v1=<hex>। ਹੈਕਸ ਤੁਹਾਡੇ ਵੈੱਬਹੁੱਡ ਦੇ ਗੁਪਤ ਕੋਡ (ਇਹ whsec_ ਨਾਲ ਸ਼ੁਰੂ ਹੁੰਦਾ ਹੈ ਅਤੇ ਇੱਕ ਵਾਰ ਦਿਖਾਇਆ ਜਾਂਦਾ ਹੈ, ਜਦੋਂ ਵੈੱਬਹੁੱਡ ਬਣਾਇਆ ਜਾਂਦਾ ہے) ਦੀ ਵਰਤੋਂ ਕਰਕੇ <t>.<body> ਦਾ HMAC-SHA256 ਹੈ। ਉਹੀ ਗਣਨਾ ਕਰੋ ਅਤੇ ਤੁਲਨਾ ਕਰੋ, ਅਤੇ ਕੁਝ ਮਿੰਟਾਂ ਤੋਂ ਵੱਧ ਪੁਰਾਣੀ ਕਿਸੇ ਵੀ ਚੀਜ਼ ਨੂੰ ਮੋੜ ਦਿਓ।
Node Python
verify.js ਕਾਪੀ ਕਰੋ const crypto = require('crypto');
// rawBody is the request body exactly as received, before JSON.parse.
function verify(secret, header, rawBody) {
const parts = Object.fromEntries(header.split(',').map((p) => p.trim().split('=')));
const want = crypto.createHmac('sha256', secret)
.update(parts.t + '.' + rawBody)
.digest('hex');
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
return fresh && parts.v1.length === want.length &&
crypto.timingSafeEqual(Buffer.from(parts.v1), Buffer.from(want));
}verify.py ਕਾਪੀ ਕਰੋ import hashlib, hmac, time
# raw_body is the request body as bytes, exactly as received.
def verify(secret: str, header: str, raw_body: bytes) -> bool:
parts = dict(p.strip().split("=", 1) for p in header.split(","))
signed = parts["t"].encode() + b"." + raw_body
want = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
fresh = abs(time.time() - int(parts["t"])) < 300
return fresh and hmac.compare_digest(want, parts.get("v1", ""))ਸਾਈਨ-ਇਨ ਲਿੰਕ ਸਾਈਨ-ਇਨ ਲਿੰਕ ਇੱਕ ਵਿਅਕਤੀ ਨੂੰ ਸਿੱਧਾ ਇੱਕ ਬੋਰਡ ਵਿੱਚ, ਪਹਿਲਾਂ ਹੀ ਨਾਮ ਦਿੱਤੇ ਹੋਏ, ਲੈ ਜਾਂਦਾ ਹੈ। ਜਿਸ ਸਮੇਂ ਉਹ ਜੁਆਇਨ ਦਬਾਉਂਦੇ ਹਨ, ਇਸਨੂੰ ਆਪਣੇ ਸਰਵਰ 'ਤੇ ਬਣਾਓ, ਅਤੇ ਉਨ੍ਹਾਂ ਨੂੰ ਇਸ 'ਤੇ ਰੀਡਾਇਰੈਕਟ ਕਰੋ।
ਭਾਗੀਦਾਰ ਲਿੰਕ ਉਦੋਂ ਤੱਕ ਕੰਮ ਕਰਦੇ ਹਨ ਜਦੋਂ ਤੱਕ ਉਹ ਮਿਆਦ ਪੁੱਗ ਜਾਂਦੇ ਹਨ: ਇੱਕ ਦਿਨ ਜਦੋਂ ਤੱਕ ਤੁਸੀਂ ਨਹੀਂ ਕਹਿੰਦੇ, ਵੱਧ ਤੋਂ ਵੱਧ 90 ਦਿਨ।ਹੋਸਟ ਲਿੰਕ ਬੋਰਡ ਦੇ ਟਿਊਟਰ ਵਜੋਂ ਸਾਈਨ ਇਨ ਕਰਦੇ ਹਨ। ਉਹ ਇੱਕ ਵਾਰ ਕੰਮ ਕਰਦੇ ਹਨ ਅਤੇ ਦੱਸ ਮਿੰਟ ਤੱਕ ਰਹਿੰਦੇ ਹਨ।external_id ਕਿਸੇ ਵਿਅਕਤੀ ਨੂੰ ਹਰ ਵਾਰ ਵਾपਸ ਆਉਣ 'ਤੇ ਇੱਕ Tutorio ਖਾਤੇ 'ਤੇ ਰੱਖਦਾ ਹੈ।join.js ਕਾਪੀ ਕਰੋ // When someone presses Join in your product:
app.get('/lessons/:id/join', async (req, res) => {
const lesson = await db.lessons.find(req.params.id);
const user = req.user;
// The same external_id always returns the same board.
const board = await tutorio('POST', '/boards', {
name: lesson.title,
external_id: 'lesson-' + lesson.id,
});
const link = await tutorio('POST', '/boards/' + board.code + '/links', {
role: user.isTutor ? 'host' : 'participant',
name: user.name,
external_id: 'user-' + user.id,
});
res.redirect(link.url);
});ਐਂਬੈੱਡ ਕਰਨਾ ਅੰਦਰ ਜਾਣ ਦਾ ਸਭ ਤੋਂ ਆਸਾਨ ਤਰੀਕਾ ਤੁਹਾਡੇ ਉਤਪਾਦ ਵਿੱਚ ਕਿਤੇ ਵੀ ਇੱਕ ਜੁਆਇਨ ਬਟਨ ਹੈ: ਬੋਰਡ ਆਪਣੇ ਆਪ ਵਿੱਚ ਇੱਕ ਪੰਨੇ ਦੇ ਰੂਪ ਵਿੱਚ ਖੁੱਲ੍ਹਦਾ ਹੈ, ਉਸੇ ਟੈਬ ਵਿੱਚ ਜਾਂ ਇੱਕ ਨਵੇਂ ਵਿੱਚ।
ਜੁਆਇਨ ਬਟਨ ਕਾਪੀ ਕਰੋ <!-- The board opens as its own page, so cameras and microphones work. -->
<a href="/lessons/4821/join" target="_blank" rel="noopener">Join lesson</a>ਤੁਹਾਡੇ ਪੇਜ ਦੇ ਅੰਦਰ ਹੀ ਰੂਮ लाइव ਕਮਰੇ ਨੂੰ ਆਪਣੇ ਖੁਦ ਦੇ ਪਾਠ ਪੰਨੇ ਦੇ ਅੰਦਰ ਦਿਖਾਉਣ үшін, ਇਸਨੂੰ ਇੱਕ iframe ਵਿੱਚ ਰੱਖੋ। ਤिन ਚੀਜ਼ਾਂ ਇਸਨੂੰ ਕੰਮ ਕਰਦੀਆਂ ਹਨ:
अपनी साइट की अनुमति दें। The tutor who hosts the boards adds your site's exact address (like https://lessons.example.com) under Integrations, Developers, Embed your whiteboard. Https only, no wildcards, ten sites at most. Every other site is refused by the browser, and so is every other Tutorio page.Make an embed link. Send "embed": true when you create a sign-in link and use its url as the frame's src. A participant needs an external_id. An embed link only works in a frame: it signs the person in to that one room, never to their Tutorio account.Pass on the camera. The frame needs the allow attribute below, or the browser blocks the camera, microphone and screen sharing inside it. The room says so when it is missing.lesson.js ਕਾਪੀ ਕਰੋ // The lesson page in your product, rendered on your server:
app.get('/lessons/:id', async (req, res) => {
const lesson = await db.lessons.find(req.params.id);
const user = req.user;
const board = await tutorio('POST', '/boards', {
name: lesson.title,
external_id: 'lesson-' + lesson.id,
});
// "embed": true makes a link that only works as the src of a frame.
// Make a fresh one each time the page is rendered.
const link = await tutorio('POST', '/boards/' + board.code + '/links', {
role: user.isTutor ? 'host' : 'participant',
name: user.name,
external_id: 'user-' + user.id,
embed: true,
});
res.render('lesson', { roomSrc: link.url, roomTab: link.fallback_url });
});lesson.html ਕਾਪੀ ਕਰੋ <iframe id="room"
src="{{ roomSrc }}"
allow="camera; microphone; display-capture; fullscreen; clipboard-write; autoplay"
allowfullscreen
style="width:100%;height:720px;border:0"
title="Whiteboard"></iframe>
<a href="{{ roomTab }}" target="_blank" rel="noopener">Open in a new tab</a>
<script>
window.addEventListener('message', function (e) {
if (e.origin !== 'https://tutorio.app') return;
if (e.source !== document.getElementById('room').contentWindow) return;
switch (e.data && e.data.type) {
case 'tutorio:ready': break; // the room has loaded
case 'tutorio:joined': break; // e.data.role is "host" or "participant"
case 'tutorio:left': break; // they left the room
case 'tutorio:ended': break; // the host ended the session
case 'tutorio:error': break; // e.data.code says why; render the page again for a fresh link
}
});
</script>ਫ੍ਰੇਮ ਤੋਂ ਸੁਨੇਹੇ tutorio:readyਕਮਰਾ ਲੋਡ ਹੋ ਗਿਆ ਹੈ ਅਤੇ ਆਪਣੀ ਜੁਆਇਨ ਸਕ੍ਰੀਨ ਦਿਖਾ ਰਿਹਾ ਹੈ। tutorio:joinedਉਹ ਕਮਰੇ ਵਿੱਚ ਹਨ। role host ਜਾਂ participant ਹੈ। tutorio:leftਉਹ ਛੱਡ ਗਏ, ਜਾਂ ਹੋਸਟ ਨੇ ਉਨ੍ਹਾਂ ਨੂੰ ਹਟਾ ਦਿੱਤਾ। tutorio:endedਹੋਸਟ ਨੇ ਸਾਰਿਆਂ ਲਈ ਸੈਸ਼ਨ ਖਤਮ ਕਰ ਦਿੱਤਾ। tutorio:errorਫ੍ਰੇਮ ਕਮਰਾ ਨਹੀਂ ਦਿਖਾ ਸਕਦਾ। code ਦੱਸਦਾ ਹੈ ਕਿ ਕਿਉਂ: link_expired, no_session, locked, own_account, embed_off, permissions।
What works in the frame The board, tabs, apps and websites, uploads, chat, the call with cameras and screen sharing, and the host's room controls.What needs a tab of its own Recording, Rio, the invite sheet, cloud files, Print Studio and live lessons. The room has an Open in a new tab button; fallback_url is the same address for your own.Sessions The frame stays signed in while it is open (two hours without activity, twelve at most) and across reloads. A host link works once, so make a new link every time you render the page. Removing a site from the list signs out every embedded room.No cookies Nothing depends on third-party cookies.ਦੂਜੇ ਤਰੀਕੇ ਨਾਲ ਜਾਣ ਲਈ और ਆਪਣੀ ਸਮੱਗਰੀ ਨੂੰ ਬੋਰਡ ਦੇ ਅੰਦਰ ਰੱਖਣ ਲਈ, ਹੇਠਾਂ ਦਿੱਤੇ Custom Apps SDK ਦੀ ਵਰਤੋਂ ਕਰੋ। ਇੱਕ ਸਿੱਖਣ ਦੇ ਪਲੇਟਫਾਰਮ ਲਈ, LTI 1.3 ਬਿਨਾਂ ਕਿਸੇ ਕੋਡ ਦੇ ਇੱਕ ਕੋਰਸ ਵਿੱਚ ਬੋਰਡ ਜੋੜਦਾ ਹੈ।
ਕਸਟਮ ਐਪਸ SDK ਕੋਈ ਵੀ https ਪੰਨਾ ਜੋ ਫ੍ਰੇਮਿੰਗ ਦੀ ਆਗਿਆ ਦਿੰਦਾ ਹੈ, ਬੋਰਡ 'ਤੇ ਇੱਕ ਐਪ ਹੋ ਸਕਦਾ ਹੈ। ਇਸਨੂੰ Integrations ਵਿੱਚ Custom apps ਦੇ ਅਧੀਨ ਸ਼ਾਮਲ ਕਰੋ, ਇੱਕ ਸਕ੍ਰਿਪਟ ਲੋਡ ਕਰੋ, और ਇਹ ਕਮਰੇ ਵਿੱਚ ਹਰੇਕ ਦੁਆਰਾ ਸਾਂਝਾ ਕੀਤਾ ਜਾਂਦਾ ਹੈ।
ਇੱਕ ਕਾਊਂਟਰ ਜੋ ਪੂਰਾ ਕਮਰਾ ਸਾਂਝਾ ਕਰਦਾ ਹੈ ਕਾਪੀ ਕਰੋ <button id="add">0</button>
<script src="https://tutorio.app/public/assets/js/sdk/board.js"></script>
<script>
const button = document.getElementById('add');
const show = (state) => { button.textContent = state.count || 0; };
TutorioBoard.ready().then((room) => {
show(room.state);
TutorioBoard.on('state', show);
button.onclick = () => {
TutorioBoard.state.set('count', (TutorioBoard.state.get('count') || 0) + 1);
};
});
</script>TutorioBoard ready()ਕਮਰੇ ਲਈ ਇੱਕ ਵਾਅਦਾ: me, people, state, ਅਤੇ standalone ਜਦੋਂ ਪੇਜ ਬੋਰਡ ਵਿੱਚ ਨਹੀਂ ਹੁੰਦਾ। state.set(key, value)ਇੱਕ ਸਾਂਝਾ ਮੁੱਲ ਸੈੱਟ ਕਰਦਾ ਹੈ। ਸਾਰਿਆਂ ਨੂੰ ਮਿਲਦਾ ਹੈ; ਆخری ਵਾਰ ਲਿਖਿਆ ਗਿਆ ਜਿੱਤਦਾ ਹੈ। ਕੁੱਲ 32 KB। state.get(key)ਇੱਕ ਸਾਂਝਾ ਮੁੱਲ ਪੜ੍ਹਦਾ ਹੈ। on('state', fn)ਜਦੋਂ ਵੀ ਸਥਿਤੀ ਬਦਲਦੀ ਹੈ ਤਾਂ ਪੂਰੀ ਸਥਿਤੀ ਨਾਲ ਬੁਲਾਇਆ ਜਾਂਦਾ ਹੈ। send(data)ਕਮਰੇ ਵਿੱਚ ਮੌਜੂਦ ਹਰ ਕਿਸੇ ਲਈ ਇੱਕ ਸੁਨੇਹਾ। ਸੰਭਾਲਿਆ ਨਹੀਂ ਜਾਂਦਾ। on('message', fn)ਕਿਸੇ ਵੱਲੋਂ ਭੇਜੇ ਗਏ ਹਰੇਕ ਸੁਨੇਹੇ ਨਾਲ ਬੁਲਾਇਆ ਜਾਂਦਾ ਹੈ। peopleਹੁਣ ਕਮਰੇ ਵਿੱਚ ਕੌਣ ਹੈ।
Zapier Zapier ਐપ ਉਹਨਾਂ ਲਈ ਇਸ API ਨੂੰ ਸਮੇਟਦੀ ਹੈ ਜੋ ਕੋਡ ਨਹੀਂ ਲਿਖਦੇ। ਇਹ Zapier ਦੀ ਸਮੀਖਿਆ ਦੀ ਉਡੀਕ ਕਰ ਰਿਹਾ ਹੈ, ਇਸ ਲਈ ਇਹ ਅਜੇ ਉਹցੀ ਐਪ ਸੂਚੀ ਵਿੱਚ ਨਹੀਂ ਹੈ; ਾਨੂੰ ਸੱਦਾ ਲิงਕ ਲਈ ਪੁੱછੋ । ਇਸ ਨੂੰ ਤੁਹਾਡੇ ਆਪਣੇ Zapier ਖਾਤੇ ਦੀ ਲੋੜ ਹੈ।
ਟ੍ਰਿਗਰਜ਼ ਸੈਸ਼ਨ ਸ਼ੁਰੂ ਹੋਇਆ, ਭਾਗੀਦਾਰ ਸ਼ਾਮਲ ਹੋਇਆ, ਸੈਸ਼ਨ ਖਤਮ ਹੋਇਆ, ਰਿਕਾਰਡਿੰਗ ਤਿਆਰ ਹੈ, ਰਿਕਾਰਡਿੰਗ ਲਿਖੀ ਗਈ, ਵ੍ਹਾਈਟਬੋਰਡ ਬਣਾਇਆ ਗਿਆ।ਐਕਸ਼ਨ ਵ੍ਹਾਈਟਬੋਰਡ ਬਣਾਓ, ਸ਼ਾਮਲ ਹੋਣ ਦਾ ਲิงਕ ਬਣਾਓ, ਵ੍ਹਾਈਟਬੋਰਡ ਲੱਭੋ।Zapier ਐਪ ਬਾਰੇ ਹੋਰ