Prepended 'Twit' to Twitter-compatible API actions (renamed action
files) to make it more clear what the action files are for. darcs-hash:20080715043121-ca946-bb7acd42271117dbb77d5e16292673a4b8cfad53.gz
This commit is contained in:
parent
efd14edf5c
commit
3df358a9e9
@ -76,7 +76,7 @@ class ApiAction extends Action {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function process_command() {
|
function process_command() {
|
||||||
$action = "api$this->api_action";
|
$action = "twitapi$this->api_action";
|
||||||
$actionfile = INSTALLDIR."/actions/$action.php";
|
$actionfile = INSTALLDIR."/actions/$action.php";
|
||||||
if (file_exists($actionfile)) {
|
if (file_exists($actionfile)) {
|
||||||
require_once($actionfile);
|
require_once($actionfile);
|
||||||
|
@ -21,7 +21,7 @@ if (!defined('LACONICA')) { exit(1); }
|
|||||||
|
|
||||||
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
||||||
|
|
||||||
class ApiaccountAction extends TwitterapiAction {
|
class TwitapiaccountAction extends TwitterapiAction {
|
||||||
|
|
||||||
function verify_credentials($args, $apidata) {
|
function verify_credentials($args, $apidata) {
|
||||||
parent::handle($args);
|
parent::handle($args);
|
@ -21,7 +21,7 @@ if (!defined('LACONICA')) { exit(1); }
|
|||||||
|
|
||||||
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
||||||
|
|
||||||
class ApiblocksAction extends TwitterapiAction {
|
class TwitapiblocksAction extends TwitterapiAction {
|
||||||
|
|
||||||
function create($args, $apidata) {
|
function create($args, $apidata) {
|
||||||
parent::handle($args);
|
parent::handle($args);
|
@ -21,7 +21,7 @@ if (!defined('LACONICA')) { exit(1); }
|
|||||||
|
|
||||||
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
||||||
|
|
||||||
class Apidirect_messagesAction extends TwitterapiAction {
|
class Twitapidirect_messagesAction extends TwitterapiAction {
|
||||||
|
|
||||||
function direct_messages($args, $apidata) {
|
function direct_messages($args, $apidata) {
|
||||||
parent::handle($args);
|
parent::handle($args);
|
@ -21,7 +21,7 @@ if (!defined('LACONICA')) { exit(1); }
|
|||||||
|
|
||||||
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
||||||
|
|
||||||
class ApifavoritesAction extends TwitterapiAction {
|
class TwitapifavoritesAction extends TwitterapiAction {
|
||||||
|
|
||||||
function favorites($args, $apidata) {
|
function favorites($args, $apidata) {
|
||||||
parent::handle($args);
|
parent::handle($args);
|
@ -21,7 +21,7 @@ if (!defined('LACONICA')) { exit(1); }
|
|||||||
|
|
||||||
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
||||||
|
|
||||||
class ApifriendshipsAction extends TwitterapiAction {
|
class TwitapifriendshipsAction extends TwitterapiAction {
|
||||||
|
|
||||||
|
|
||||||
function create($args, $apidata) {
|
function create($args, $apidata) {
|
@ -21,7 +21,7 @@ if (!defined('LACONICA')) { exit(1); }
|
|||||||
|
|
||||||
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
||||||
|
|
||||||
class ApihelpAction extends TwitterapiAction {
|
class TwitapihelpAction extends TwitterapiAction {
|
||||||
|
|
||||||
/* Returns the string "ok" in the requested format with a 200 OK HTTP status code.
|
/* Returns the string "ok" in the requested format with a 200 OK HTTP status code.
|
||||||
* URL:http://identi.ca/api/help/test.format
|
* URL:http://identi.ca/api/help/test.format
|
@ -22,7 +22,7 @@ if (!defined('LACONICA')) { exit(1); }
|
|||||||
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
require_once(INSTALLDIR.'/lib/twitterapi.php');
|
||||||
|
|
||||||
# This naming convention looks real sick
|
# This naming convention looks real sick
|
||||||
class ApinotificationsAction extends TwitterapiAction {
|
class TwitapinotificationsAction extends TwitterapiAction {
|
||||||
|
|
||||||
|
|
||||||
function follow($args, $apidata) {
|
function follow($args, $apidata) {
|
@ -25,7 +25,7 @@ require_once(INSTALLDIR.'/lib/twitterapi.php');
|
|||||||
* They are mostly in here for reference while I work on the
|
* They are mostly in here for reference while I work on the
|
||||||
* API. I'll fix things up to make them look better later. -- Zach
|
* API. I'll fix things up to make them look better later. -- Zach
|
||||||
*/
|
*/
|
||||||
class ApistatusesAction extends TwitterapiAction {
|
class TwitapistatusesAction extends TwitterapiAction {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns the 20 most recent statuses from non-protected users who have set a custom
|
* Returns the 20 most recent statuses from non-protected users who have set a custom
|
Loading…
Reference in New Issue
Block a user