Skip to content

Instantly share code, notes, and snippets.

@kabeer11000
Created June 9, 2020 21:34
Show Gist options
  • Save kabeer11000/990494b2114e66803a3e604793e0737e to your computer and use it in GitHub Desktop.
Save kabeer11000/990494b2114e66803a3e604793e0737e to your computer and use it in GitHub Desktop.
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);
});
}
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