diff options
author | zach <zach@copley.name> | 2008-07-14 15:03:00 -0400 |
---|---|---|
committer | zach <zach@copley.name> | 2008-07-14 15:03:00 -0400 |
commit | 0bb522d5f4476f3da416f7dcd9bf5a50d29966e6 (patch) | |
tree | c5fdfc5b0ec5fb5b8d9f5302d94d20743ac059fc /actions/apidirect_messages.php | |
parent | fdc7bfcc51a1eb599773145549fe79e521b56821 (diff) |
All Twitter-compatible API calls answer now
darcs-hash:20080714190300-ca946-80e4dbdd0b5278d03cb00b0922cd69c695a166cb.gz
Diffstat (limited to 'actions/apidirect_messages.php')
-rw-r--r-- | actions/apidirect_messages.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/actions/apidirect_messages.php b/actions/apidirect_messages.php index 125aad128..477aa4329 100644 --- a/actions/apidirect_messages.php +++ b/actions/apidirect_messages.php @@ -19,11 +19,9 @@ if (!defined('LACONICA')) { exit(1); } -# This naming convention looks real sick class Apidirect_messagesAction extends Action { - - function index($args, $apidata) { + function direct_messages($args, $apidata) { parent::handle($args); common_server_error("API method under construction.", $code=501); exit(); @@ -35,17 +33,17 @@ class Apidirect_messagesAction extends Action { exit(); } - function new($args, $apidata) { + # had to change this from "new" to "create" to avoid PHP reserved word + function create($args, $apidata) { parent::handle($args); common_server_error("API method under construction.", $code=501); exit(); } - + function destroy($args, $apidata) { parent::handle($args); common_server_error("API method under construction.", $code=501); exit(); } - }
\ No newline at end of file |