Introduction
Here is a list of APIs used for integration to other Apps, for more information please see Documentation
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by contacting the support of qiroah.com
Account
Authentication
Get Access Token via GoogleSignIn
This endpoint allows you to get the token for user access to the authenticated endpoints using GoogleSignIn.
Example request:
curl --request POST \
"https://devapi.qiroah.com/api/auth/google" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id_token\": null
}"
const url = new URL(
"https://devapi.qiroah.com/api/auth/google"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id_token": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Success):
{
"status": 200,
"error": false,
"data": {
"access_token": string,
"token_type": string,
"expires_at": int,
"email": string,
"is_profile_complete": boolean,
}
}
Example response (400, idToken is not verified):
{
"status": 400,
"message": "idToken is not verified",
"error": true
}
Example response (403, Account user not found):
{
"status": 403,
"message": "Account user not found",
"error": true
}
Example response (500, Internal Server Error):
{
"status": 500,
"message": "Internal Server Error",
"error": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Register via Form
This endpoint allows you to create user account via Registration Form.
Example request:
curl --request POST \
"https://devapi.qiroah.com/api/auth/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": null,
\"name\": null,
\"gender\": null,
\"whatsapp\": 44
}"
const url = new URL(
"https://devapi.qiroah.com/api/auth/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": null,
"name": null,
"gender": null,
"whatsapp": 44
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201, Created):
{
"status": 201,
"error": false
}
Example response (403, Email already registered):
{
"status": 403,
"message": "Email already registered",
"error": true
}
Example response (500, Internal Server Error):
{
"status": 500,
"message": "Internal Server Error",
"error": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Revoke The Access Token
requires authentication
This endpoint allows you to revoke the token.
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/auth/logout" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/auth/logout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"status": 200,
"error": false
}
Example response (401, Unauthorized):
{
"status": 401,
"message": "Unauthorized",
"error": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Profile
Get Profile User by ID
requires authentication
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id": int,
"name": string,
"avatar": string
}
]
}
Example response (401, Unauthenticated):
{
"status": 401,
"message": "Unauthorized",
"error": true
}
Example response (404, Not Found):
{
"status": 401,
"message": "Not Found",
"error": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Profile User
requires authentication
Example request:
curl --request PUT \
"https://devapi.qiroah.com/api/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (200):
{
"data": [],
"status": 200,
"message": "Success",
"error": false
}
Example response (401, Unauthenticated):
{
"data": [],
"status": 401,
"message": "Unauthorized",
"error": true
}
Example response (404, Not Found):
{
"data": [],
"status": 401,
"message": "Not Found",
"error": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lesson
Get list of Feedback
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/feedbacks" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/feedbacks"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_feedback": string,
"deskripsi": string,
"daftar_pertanyaan": [
{
"id_pertanyaan": string,
"id_feedback": string,
"id_kategori": string,
"id_content": string,
"pertanyaan": string,
"audio_ustadz": string,
"image_soal": string,
"true_sound_label": string,
"daftar_content": [
{
"id_content": string,
"nama_content": string,
"deskripsi": string,
"image": string,
"video": string,
"rekap": string,
"intro_text": string,
}
],
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get list of Pertanyaan
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/pertanyaans?id_content=2" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/pertanyaans"
);
const params = {
"id_content": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_pertanyaan": string,
"id_feedback": string,
"id_kategori": string,
"id_content": string,
"pertanyaan": string,
"audio_ustadz": string,
"image_soal": string,
"true_sound_label": string,
"daftar_feedbacks": [
{
"id_feedback": string,
"deskripsi": string
}
],
"daftar_contents": [
{
"id_content": string,
"nama_content": string,
"deskripsi": string,
"image": string,
"video": string,
"rekap": string,
"intro_text": string,
}
],
"daftar_hurufs": [
{
"id_huruf": string,
"huruf": string,
"daftar_sifat": [
{
"id_sifatul_huruf": string,
"nama_sifat": string,
"deskripsi": int
}
]
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get list of Huruf
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/hurufs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/hurufs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_huruf": string,
"huruf": string,
"daftar_sifat": [
{
"id_sifatul_huruf": string,
"nama_sifat": string,
"deskripsi": int
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get list of Kategori
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/kategoris" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/kategoris"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_kategori": string,
"nama_kategori": string,
"deskripsi": string,
"image": string,
"deskripsi_panjang": string,
"daftar_subkategori": [
{
"id_subkategori": string,
"id_kategori": string,
"bagian_mulut": string,
"daftar_content": [
{
"id_content": string,
"nama_content": string,
"deskripsi": string,
"image": string,
"video": string,
"rekap": string,
"intro_text": string
}
]
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get list of Sub Kategori
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/kategoris/sub?id_kategori=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/kategoris/sub"
);
const params = {
"id_kategori": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id_subkategori": string,
"id_kategori": string,
"bagian_mulut": string,
"daftar_content": [
{
"id_content": string,
"nama_content": string,
"deskripsi": string,
"image": string,
"video": string,
"rekap": string,
"intro_text": string
}
]
}
],
"status": 200,
"error": false
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Talaqqi
Get list of Lembaga
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/lembagas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/lembagas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_lembaga": string,
"info": string,
"nama_lembaga": string,
"alamat": string,
"latitude": string,
"longitude": string,
"nomor_telepon": string,
"deskripsi": string,
"instagram": string,
"email": string,
"web": string
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get list of Teacher
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/pengajars" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/pengajars"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id_teacher": int,
"id_user": int,
"nama_pengajar": string,
"info": string,
"domisili": string,
"instagram": string,
"nomor_telepon": string,
"profesi": string,
"latitude": string,
"longitude": string,
"sertifikats": [
{
"id_sertifikasipengajar": string,
"id_pengajar": string,
"sertifikasi": string,
"sumber": string
}
],
"pengalamans": [
{
"id_pengalamanpengajar": string,
"id_pengajar": string,
"pengalaman": string,
"tahun": string,
"pengalaman_preview": string
}
],
"levels": [
{
"id_level": int,
"level": string,
"description": string,
"s_active": string
}
],
"days": [
{
"id_day": int,
"day": string,
"times": [
{
"id_time": int,
"time": string,
"students": [
{
"id_student": int,
"id_user": int,
"name": string,
"whatsapp": string,
"gender": string
}
]
}
]
}
]
}
],
"status": 200,
"error": false
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get list of Teacher
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/teachers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/teachers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id_teacher": int,
"id_user": int,
"nama_pengajar": string,
"info": string,
"domisili": string,
"instagram": string,
"nomor_telepon": string,
"profesi": string,
"latitude": string,
"longitude": string,
"sertifikats": [
{
"id_sertifikasipengajar": string,
"id_pengajar": string,
"sertifikasi": string,
"sumber": string
}
],
"pengalamans": [
{
"id_pengalamanpengajar": string,
"id_pengajar": string,
"pengalaman": string,
"tahun": string,
"pengalaman_preview": string
}
],
"levels": [
{
"id_level": int,
"level": string,
"description": string,
"s_active": string
}
],
"days": [
{
"id_day": int,
"day": string,
"times": [
{
"id_time": int,
"time": string,
"students": [
{
"id_student": int,
"id_user": int,
"name": string,
"whatsapp": string,
"gender": string
}
]
}
]
}
]
}
],
"status": 200,
"error": false
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Teacher by ID
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/teachers/labore" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/teachers/labore"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id_teacher": int,
"id_user": int,
"nama_pengajar": string,
"info": string,
"domisili": string,
"instagram": string,
"nomor_telepon": string,
"profesi": string,
"latitude": string,
"longitude": string,
"sertifikats": [
{
"id_sertifikasipengajar": string,
"id_pengajar": string,
"sertifikasi": string,
"sumber": string
}
],
"pengalamans": [
{
"id_pengalamanpengajar": string,
"id_pengajar": string,
"pengalaman": string,
"tahun": string,
"pengalaman_preview": string
}
],
"levels": [
{
"id_level": int,
"level": string,
"description": string,
"s_active": string
}
],
"days": [
{
"id_day": int,
"day": string,
"times": [
{
"id_time": int,
"time": string,
"students": [
{
"id_student": int,
"id_user": int,
"name": string,
"whatsapp": string,
"gender": string
}
]
}
]
}
]
}
],
"status": 200,
"message": "Success",
"error": false
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Placement Test
Get Placement Test
requires authentication
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/placement-test" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/placement-test"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_placement_test": int,
"id_reviewer": int,
"id_student": int,
"test_schedule_at": string,
"actual_tested_at": string,
"level_result": int,
"notes": string,
"expired_date_at": string,
"s_progress": int,
"id_user": int,
"name": string,
"whatsapp": string,
"gender": string,
"link_catatan": string
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Register Placement Test
requires authentication
Example request:
curl --request POST \
"https://devapi.qiroah.com/api/placement-test/register" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/placement-test/register"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_placement_test": int,
"id_reviewer": int,
"id_student": int,
"test_schedule_at": string,
"actual_tested_at": string,
"level_result": int,
"notes": string,
"expired_date_at": string,
"s_progress": int,
"id_user": int,
"name": string,
"whatsapp": string,
"gender": string,
"link_catatan": string
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Package
Get list of Package
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/packages" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/packages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_package": int,
"name": string,
"description": string,
"price": string,
"duration": float,
"duration_in": float,
"recurred_of_meeting": string,
"level": string,
"bill_type": string,
"recurred_of_meeting_label": string
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Package by ID
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/packages/aliquam" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/packages/aliquam"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_package": int,
"name": string,
"description": string,
"price": string,
"duration": float,
"duration_in": float,
"recurred_of_meeting": string,
"level": string,
"bill_type": string,
"recurred_of_meeting_label": string
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/set-schedules
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/set-schedules" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/set-schedules"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"status": 500,
"message": {
"errorInfo": [
"42S02",
1146,
"Table 'u136005164_qiroah_dev.mpackage_students' doesn't exist"
]
},
"error": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Program
Get list of Program
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/programs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/programs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_program": int,
"program_name": string,
"url_register": string,
"short_description": string,
"description_html": string,
"s_active": int,
"program_type": string,
"s_progress": int
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Program by ID
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/programs/rem" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/programs/rem"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id_program": int,
"program_name": string,
"url_register": string,
"short_description": string,
"description_html": string,
"s_active": int,
"program_type": string,
"s_progress": int
}
],
"status": 200,
"message": "Success",
"error": false
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Teacher Slot Time
Get List of Teacher Slot Time
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/teachers/slot-time" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/teachers/slot-time"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_teacher": int,
"id_user": int,
"nama_pengajar": string,
"info": string,
"domisili": string,
"instagram": string,
"nomor_telepon": string,
"profesi": string,
"latitude": string,
"longitude": string,
"levels": [
{
"id_level": int,
"level": string,
"description": string,
"s_active": string
}
],
"days": [
{
"id_day": int,
"day": string,
"times": [
{
"id_time": int,
"time": string,
"students": [
{
"id_student": int,
"id_user": int,
"name": string,
"whatsapp": string,
"gender": string
}
]
}
]
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Teacher Slot Time by ID
Example request:
curl --request GET \
--get "https://devapi.qiroah.com/api/teachers/dolores/slot-time" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://devapi.qiroah.com/api/teachers/dolores/slot-time"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": 200,
"error": false,
"data": [
{
"id_teacher": int,
"id_user": int,
"nama_pengajar": string,
"info": string,
"domisili": string,
"instagram": string,
"nomor_telepon": string,
"profesi": string,
"latitude": string,
"longitude": string,
"levels": [
{
"id_level": int,
"level": string,
"description": string,
"s_active": string
}
],
"days": [
{
"id_day": int,
"day": string,
"times": [
{
"id_time": int,
"time": string,
"students": [
{
"id_student": int,
"id_user": int,
"name": string,
"whatsapp": string,
"gender": string
}
]
}
]
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.