aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-29 18:21:54 -0700
committerFriendika <info@friendika.com>2011-07-29 18:21:54 -0700
commitdbc328368187bca4c0365ab56db57437dfda9f38 (patch)
tree3a57f847cdbddad73a152cb687c66f79cd9dec1b
parent829dc2446477fcac0e8d2cde26e3cc4fed52e4fd (diff)
downloadvolse-hubzilla-dbc328368187bca4c0365ab56db57437dfda9f38.tar.gz
volse-hubzilla-dbc328368187bca4c0365ab56db57437dfda9f38.tar.bz2
volse-hubzilla-dbc328368187bca4c0365ab56db57437dfda9f38.zip
api/statusnet/version
-rw-r--r--include/api.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/api.php b/include/api.php
index df15965e7..2b1a8b0f5 100644
--- a/include/api.php
+++ b/include/api.php
@@ -588,3 +588,20 @@
}
api_register_func('api/statusnet/config','api_statusnet_config',false);
+
+ function api_statusnet_version(&$a,$type) {
+
+ // liar
+
+ if($type === 'xml') {
+ header("Content-type: application/xml");
+ echo '<?xml version="1.0" encoding="UTF-8"?>' . "\r\n" . '<version>0.9.7</version>' . "\r\n";
+ killme();
+ }
+ elseif($type === 'json') {
+ header("Content-type: application/json");
+ echo '"0.9.7"';
+ killme();
+ }
+ }
+ api_register_func('api/statusnet/version','api_statusnet_version',false);