Lecture Weeks (1-14)
curl --request GET \
--url https://api.bilauitmcuti.com/api/v1/lecture-weeksimport requests
url = "https://api.bilauitmcuti.com/api/v1/lecture-weeks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bilauitmcuti.com/api/v1/lecture-weeks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bilauitmcuti.com/api/v1/lecture-weeks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bilauitmcuti.com/api/v1/lecture-weeks"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bilauitmcuti.com/api/v1/lecture-weeks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bilauitmcuti.com/api/v1/lecture-weeks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"apiVersion": "<string>",
"baseUrl": "<string>",
"session": {
"id": "<string>",
"label": "<string>",
"group": "<string>"
},
"limit": 123,
"weeks": [
{
"weekNumber": 2,
"weekStart": "2023-12-25",
"weekEnd": "2023-12-25",
"rangeLabel": "<string>",
"days": [
{
"date": "2023-12-25",
"weekday": "<string>",
"label": "<string>"
}
]
}
],
"meta": {
"weekCount": 123,
"firstLectureDate": "2023-12-25",
"lastLectureDate": "2023-12-25"
}
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}UiTM Academic Calendar
Lecture Weeks
Returns up to 14 instructional weeks (Week 1 onward) for the given session. Each week is a Mon-Sun calendar slot that contains at least one lecture day; break days (mid-semester, festival, revision, etc.) are omitted from the days list rather than dropping the whole week. Weeks with no lecture days, or where every day is break, are skipped. Each included week lists only its instructional days with English weekday and month names. Requires query parameter session only.
GET
https://api.bilauitmcuti.com
/
api
/
v1
/
lecture-weeks
Lecture Weeks (1-14)
curl --request GET \
--url https://api.bilauitmcuti.com/api/v1/lecture-weeksimport requests
url = "https://api.bilauitmcuti.com/api/v1/lecture-weeks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bilauitmcuti.com/api/v1/lecture-weeks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bilauitmcuti.com/api/v1/lecture-weeks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bilauitmcuti.com/api/v1/lecture-weeks"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bilauitmcuti.com/api/v1/lecture-weeks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bilauitmcuti.com/api/v1/lecture-weeks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"apiVersion": "<string>",
"baseUrl": "<string>",
"session": {
"id": "<string>",
"label": "<string>",
"group": "<string>"
},
"limit": 123,
"weeks": [
{
"weekNumber": 2,
"weekStart": "2023-12-25",
"weekEnd": "2023-12-25",
"rangeLabel": "<string>",
"days": [
{
"date": "2023-12-25",
"weekday": "<string>",
"label": "<string>"
}
]
}
],
"meta": {
"weekCount": 123,
"firstLectureDate": "2023-12-25",
"lastLectureDate": "2023-12-25"
}
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}Query Parameters
Response
Lecture weeks 1-14 for the resolved session with English day and month labels.
Was this page helpful?