To get the Syro Malabar Liturgical Bible Readings for the Day, follow these steps.
Note : Certain days might have multiple bible readings for each celebratory event. This API will provide all those reading details.
This API provides info from the Syro-Malabar Panchangam (Set 1).
Link the Script File
Add the below line in the <head> tag of your website.
You only need to add the below line only once per webpage, in case if you have implemented other widgets in the same webpage.
<script src="https://syrocalendar.tk/API/SyroCalendar.min.1.0.2.js"></script>
Place the Div’s
Paste the below code in the <body> tag of your website, where you need the information to be shown.
<div id="SyroCalendar_LiturgicalReadings_Mal">Loading...</div>
<div id="SyroCalendar_LiturgicalReadings_Eng">Loading...</div>
Note : You don’t need all of the above div’s. Only place the one’s you need in your website.
Result
You will receive todays seasonal readings in the following div’s :
Div | Detail |
---|---|
SyroCalendar_LiturgicalReadings_Mal | Liturgical Readings in Malayalam |
SyroCalendar_LiturgicalReadings_Eng | Liturgical Readings in English |
HTML Example Code
<html>
<head>
<title>SyroCalendar Demo - Liturgical Bible Readings</title>
<script src="https://syrocalendar.tk/API/SyroCalendar.min.1.0.2.js"></script>
</head>
<body>
<div id="SyroCalendar_LiturgicalReadings_Mal">Loading...</div>
<div id="SyroCalendar_LiturgicalReadings_Eng">Loading...</div>
<br>
<em>Powered by <a href="https://SyroCalendar.tk" target="_blank">SyroCalendar</a></em>
</body>
</html>
Please don’t forget to provide a link to SyroCalendar.tk below the Widget you implemented. It could be as simple as
Powered by SyroCalendar
(If you have multiple widgets on the same page, just 1 link will suffice)
ADVANCED
To get the JSON Data
To get the JSON data (without HTML Elements), make sure you have the Script file in the <head> tag, and call the below JavaScript function. Certain days might have multiple bible readings for each celebratory event. This JS Function will provide all those reading details, as an array of JSON objects. This function returns a JSON Object
<script>var BibleReadings = GetLiturgicalReadingsJSON();</script>
JSON Result
You will get the following data for each JSON Array Object :
Div | Detail |
---|---|
SearchDate | The Date for which the Result was retrieved for |
SeasonName_Eng_Full | Full Name of the Season in English |
SeasonName_Mal_Full | Full Name of the Season in Malayalam |
DayDescription_Eng | Week Number with Day in English |
DayDescription_Mal | Week Number with Day in Malayalam |
ReadingType | Type of Bible Reading (if there are multiple readings for a day) |
Reading1_Eng | First Reading Chapter in English |
Reading1_Mal | First Reading Chapter in Malayalam |
Reading1_Title_Eng | First Reading Title in English |
Reading1_Title_Mal | First Reading Title in Malayalam |
Reading2_Eng | Second Reading Chapter in English |
Reading2_Mal | Second Reading Chapter in Malayalam |
Reading2_Title_Eng | Second Reading Title in English |
Reading2_Title_Mal | Second Reading Title in Malayalam |
Reading3_Eng | Third Reading Chapter in English |
Reading3_Mal | Third Reading Chapter in Malayalam |
Reading3_Title_Eng | Third Reading Title in English |
Reading3_Title_Mal | Third Reading Title in Malayalam |
ReadingGospal_Eng | Gospal Reading Chapter in English |
ReadingGospal_Mal | Gospal Reading Chapter in Malayalam |
ReadingGospal_Title_Eng | Gospal Reading Title in English |
ReadingGospal_Title_Mal | Gospal Reading Title in Malayalam |
JSON Example Code
<html>
<head>
<title>SyroCalendar Demo - Liturgical Bible Readings</title>
<script src="https://syrocalendar.tk/API/SyroCalendar.min.1.0.2.js"></script>
</head>
<body>
<script>
var BibleReadings = GetLiturgicalReadingsJSON();
alert("The First Reading Chapter is : " + BibleReadings[0].Reading1_Mal);
</script>
<br>
<em>Powered by <a href="https://SyroCalendar.tk" target="_blank">SyroCalendar</a></em>
</body>
</html>
Please don’t forget to provide a link to SyroCalendar.tk below the Widget you implemented. It could be as simple as
Powered by SyroCalendar
(If you have multiple widgets on the same page, just 1 link will suffice)