1 addfile ./actions/twitapilaconica.php
2 hunk ./actions/twitapilaconica.php 1
5 + * Laconica, the distributed open-source microblogging tool
7 + * Laconica-only extensions to the Twitter-like API
11 + * LICENCE: This program is free software: you can redistribute it and/or modify
12 + * it under the terms of the GNU Affero General Public License as published by
13 + * the Free Software Foundation, either version 3 of the License, or
14 + * (at your option) any later version.
16 + * This program is distributed in the hope that it will be useful,
17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 + * GNU Affero General Public License for more details.
21 + * You should have received a copy of the GNU Affero General Public License
22 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
26 + * @author Evan Prodromou <evan@controlyourself.ca>
27 + * @copyright 2008 Control Yourself, Inc.
28 + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
29 + * @link http://laconi.ca/
32 +if (!defined('LACONICA')) {
36 +require_once INSTALLDIR.'/lib/twitterapi.php';
39 + * Laconica-specific API methods
41 + * This class handles all /laconica/ API methods.
45 + * @author Evan Prodromou <evan@controlyourself.ca>
46 + * @copyright 2008 Control Yourself, Inc.
47 + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
48 + * @link http://laconi.ca/
51 +class TwitapilaconicaAction extends TwitterapiAction
54 + * A version stamp for the API
56 + * Returns a version number for this version of Laconica, which
57 + * should make things a bit easier for upgrades.
59 + * @param array $args Web arguments
60 + * @param array $apidata Twitter API data
64 + * @see ApiAction::process_command()
67 + function version($args, $apidata)
69 + parent::handle($args);
70 + common_server_error(_('API method under construction.'), 501);
74 + * Dump of configuration variables
76 + * Gives a full dump of configuration variables for this instance
77 + * of Laconica, minus variables that may be security-sensitive (like
80 + * @param array $args Web arguments
81 + * @param array $apidata Twitter API data
85 + * @see ApiAction::process_command()
88 + function config($args, $apidata)
90 + parent::handle($args);
91 + common_server_error(_('API method under construction.'), 501);
95 + * WADL description of the API
97 + * Gives a WADL description of the API provided by this version of the
100 + * @param array $args Web arguments
101 + * @param array $apidata Twitter API data
105 + * @see ApiAction::process_command()
108 + function wadl($args, $apidata)
110 + parent::handle($args);
111 + common_server_error(_('API method under construction.'), 501);