Skip to content

Instantly share code, notes, and snippets.

@watchfulli
watchfulli / api-site-overview.php
Last active February 24, 2021 15:48
Custom website dashboard starter pack
<?php
/**
* @package Watchful Sites overview
* @author Watchful
* @authorUrl https://watchful.net
* This sample dashboard is intended for educational purposes only.
* It is not suitable for production environments.
* Be sure to always protect your API key from public exposure.
*/
@watchfulli
watchfulli / update-backup-and-monitor-with-joomla.html
Last active August 29, 2015 14:13
Embed Code: Update, backup and monitor Joomla! (animated)
<a href="https://watchful.li" title="Update, backup and monitor Joomla with Watchful"><img src="https://watchful.li/images/banners/watchful-animated.gif" alt="Update, backup and monitor Joomla banner"></a>
@watchfulli
watchfulli / compatible-with-watchful.html
Created January 16, 2015 17:19
Embed code: Compatible with Watchful
<a href="https://watchful.li" title="This extension can be updated in 1-click at Watchful.li"><img src="https://watchful.li/images/banners/extension-compatible-with-watchful.png" alt="Compatible with Watchful logo"></a>
@watchfulli
watchfulli / i-am-a-watcher-dark.html
Created January 16, 2015 17:15
Embed Code: I am a Watcher! (dark)
<a href="https://watchful.li" title="I manage my websites with Watchful"><img src="https://watchful.li/images/banners/i-am-a-watcher-dark.png" alt="I am a watcher logo"></a>
@watchfulli
watchfulli / i-am-a-watcher-light.html
Last active August 29, 2015 14:13
Embed code: I am a Watcher (light)
<a href="https://watchful.li" title="I manage my websites with Watchful"><img src="https://watchful.li/images/banners/i-am-a-watcher-light.png" alt="I am a watcher logo"></a>
@watchfulli
watchfulli / managed-with-watchful.html
Last active August 29, 2015 14:13
Embed code: website managed with Watchful
<a href="https://watchful.li" title="Website managed with Watchful"><img src="https://watchful.li/images/banners/website-managed-with-watchful.png" alt="Website managed with Watchful logo"></a>
@watchfulli
watchfulli / example-error-json
Created August 14, 2014 14:49
Example error, JSON return
{
"error": true,
"msg": "ERROR: Invalid API key",
"status": 403
}
@watchfulli
watchfulli / error-xml-return
Created August 14, 2014 14:48
Example error message, XML return
<api>
<error>1</error>
<msg>ERROR: Invalid API key</msg>
<status>403</status>
</api>
@watchfulli
watchfulli / Watchful-API.php
Last active October 24, 2022 03:00
PHP exemple file for the Watchful API
<?php
/**
* @package Watchful Documentation
* @author Watchful
* @authorUrl https://watchful.li
* @copyright (c) 2014-2017, Watchful
*/
//Config
define('API_KEY', 'REPLACE_BY_YOUR_API_KEY');