summaryrefslogtreecommitdiff
path: root/plugins/example_api/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-07 10:09:38 +0400
committerAndrew Dolgov <[email protected]>2013-05-07 10:09:38 +0400
commit2c967d60237c5890549b9c9fa680ee7adec10e6a (patch)
treee59a6791d97715b17bd08129f309227178999655 /plugins/example_api/init.php
parentd88922a5d31062196da6e69ab109079cda8867b2 (diff)
move example plugins to -contrib
Diffstat (limited to 'plugins/example_api/init.php')
-rw-r--r--plugins/example_api/init.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/example_api/init.php b/plugins/example_api/init.php
deleted file mode 100644
index 1f896badf..000000000
--- a/plugins/example_api/init.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-class Example_Api extends Plugin {
-
- // Demonstrates adding a method to the API
- // Plugin methods return an array containint
- // 1. status (STATUS_OK or STATUS_ERR)
- // 2. arbitrary payload
-
- private $host;
-
- function about() {
- return array(1.0,
- "Example plugin adding an API method",
- "fox",
- true,
- "http://tt-rss.org/");
- }
-
- function init($host) {
- $this->host = $host;
-
- $host->add_api_method("example_testmethod", $this);
- }
-
- function example_testmethod() {
- return array(API::STATUS_OK, array("current_time" => time()));
- }
-
- function api_version() {
- return 2;
- }
-
-}
-?>