diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/api.php | 11 | ||||
-rw-r--r-- | mod/rsd_xml.php | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/mod/api.php b/mod/api.php new file mode 100644 index 000000000..fa5e43de9 --- /dev/null +++ b/mod/api.php @@ -0,0 +1,11 @@ +<?php + +require_once('include/api.php'); + +function api_content(&$a) { + echo api_call($a); + killme(); +} + + + diff --git a/mod/rsd_xml.php b/mod/rsd_xml.php new file mode 100644 index 000000000..5bf4663fd --- /dev/null +++ b/mod/rsd_xml.php @@ -0,0 +1,24 @@ +<?php + + + +function rsd_xml_content(&$a) { + header ("Content-Type: text/xml"); + echo '<?xml version="1.0" encoding="UTF-8"?> + <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"> + <service> + <engineName>Friendika</engineName> + <engineLink>http://friendika.com/</engineLink> + <apis> + <api name="Twitter" preferred="true" apiLink="'.$a->get_baseurl().'/api/" blogID=""> + <settings> + <docs>http://status.net/wiki/TwitterCompatibleAPI</docs> + <setting name="OAuth">false</setting> + </settings> + </api> + </apis> + </service> + </rsd> + '; +die(); +}
\ No newline at end of file |