. */ if (!defined('LACONICA')) { exit(1); } require_once(INSTALLDIR.'/lib/twitterapi.php'); class Twitapidirect_messagesAction extends TwitterapiAction { function is_readonly() { static $write_methods = array( 'direct_messages', 'sent'); $cmdtext = explode('.', $this->arg('method')); if (in_array($cmdtext[0], $write_methods)) { return false; } return true; } function direct_messages($args, $apidata) { parent::handle($args); common_server_error(_('API method under construction.'), $code=501); exit(); } function sent($args, $apidata) { parent::handle($args); common_server_error(_('API method under construction.'), $code=501); exit(); } # 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(); } }