Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

clonalejandro/ClonaStatus-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClonaStatus 🖥️

API - Usage

• Usage PHP:

<?php
  include ('StatusApi.php'); //Include php file
  use io\clonalejandro\StatusApi; // Import a StatusApi class

  $req = new StatusApi('domaintosearch.com');

  if ($req->isOnline()) echo "Online";
  else echo "Offline";
?>

• Usage HTML:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>StatusApi</title>
</head>
<body>

<script src="StatusApi.js"></script>
<script>
    const api = new StatusApi({
        domain: "domaintosearch.com",
        port: 80
    });
    
    api.getRequest((err, data) => {
        if (err) console.error(err);
        else alert(data);
    })
</script>
</body>
</html>

picture

Copyright ©

Developed by clonalejandro