Created
June 9, 2020 21:34
-
-
Save kabeer11000/990494b2114e66803a3e604793e0737e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getIncidents(){ | |
$.get("https://kabeers-network.ueuo.com/u/api/incidents.php", function(data, status){ | |
//Console Log if More Data Mode is enabled | |
console.log(data.more); | |
for(let i=;i<data.incidents.length;i++){ | |
//Log Title of each Service Incident to the Console | |
console.log(data.incidents[i].title); | |
} | |
//Log Response Status to the console | |
console.log("Status: " + status); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getStatus(){ | |
$.get("https://kabeers-network.ueuo.com/u/api/status.php", function(data, status){ | |
for(let i=;i<data.length;i++){ | |
//Log name of each Service to the Console | |
console.log(data[i].name); | |
} | |
//Log Response Status to the console | |
console.log("Status: " + status); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment