PHP code example of geocodio / uptimerobot-api-client
1. Go to this page and download the library: Download geocodio/uptimerobot-api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
geocodio / uptimerobot-api-client example snippets
use Vdhicts\UptimeRobot\Client;
// Load the configuration once, the URL is optional
$configuration = new Client\Configuration('API_KEY', 'OPTIONAL_API_URL');
// Start the client once
$client = new Client\Client($configuration);
// Perform the request, returns a string for further processing
$response = $client->perform('getMonitors', ['monitors' => '15830-32696-83920']);