From 0bb522d5f4476f3da416f7dcd9bf5a50d29966e6 Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 14 Jul 2008 15:03:00 -0400 Subject: All Twitter-compatible API calls answer now darcs-hash:20080714190300-ca946-80e4dbdd0b5278d03cb00b0922cd69c695a166cb.gz --- actions/apidirect_messages.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'actions/apidirect_messages.php') 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 -- cgit v1.2.3-54-g00ecf