summaryrefslogtreecommitdiff
path: root/_darcs/tentative_pristine
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-30 15:59:39 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-30 15:59:39 -0500
commita3f601cd4e45832fb8bdd89419dde93d9a89aadb (patch)
tree4d72f825e661978fc6f2ed9ddebff60b7af75222 /_darcs/tentative_pristine
parent2047c68d718b847a07a117dae48d72b3bb611e36 (diff)
implement api/laconica/version method
darcs-hash:20081230205939-84dde-4b6096859c6b44169dd3d809442fab15337061b2.gz
Diffstat (limited to '_darcs/tentative_pristine')
-rw-r--r--_darcs/tentative_pristine23
1 files changed, 17 insertions, 6 deletions
diff --git a/_darcs/tentative_pristine b/_darcs/tentative_pristine
index ce01d3b5b..02f15d0f6 100644
--- a/_darcs/tentative_pristine
+++ b/_darcs/tentative_pristine
@@ -1,6 +1,17 @@
-hunk ./actions/api.php 120
-- 'help/downtime_schedule');
-+ 'help/downtime_schedule',
-+ 'laconica/version',
-+ 'laconica/config',
-+ 'laconica/wadl');
+hunk ./actions/twitapilaconica.php 56
++ * URL: http://identi.ca/api/laconica/version.(xml|json)
++ * Formats: xml, json
+hunk ./actions/twitapilaconica.php 70
+- common_server_error(_('API method under construction.'), 501);
++ switch ($apidata['content-type']) {
++ case 'xml':
++ $this->init_document('xml');
++ common_element('version', null, LACONICA_VERSION);
++ $this->end_document('xml');
++ case 'json':
++ $this->init_document('json');
++ print '"'.LACONICA_VERSION.'"';
++ $this->end_document('json');
++ default:
++ $this->client_error(_('API method not found!'), $code=404);
++ }