We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1e0c36af authored by Zach Copley's avatar Zach Copley

Renamed and moved stuff around to better match Twitter's API organization

parent 9a1dbee0
...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/apiauth.php'; ...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/apiauth.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiDestroyAction extends ApiAuthAction class ApiStatusesDestroyAction extends ApiAuthAction
{ {
var $user = null; var $user = null;
......
...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/twitterapi.php'; ...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/twitterapi.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiShowAction extends TwitterapiAction class ApiStatusesShowAction extends TwitterapiAction
{ {
var $notice_id = null; var $notice_id = null;
......
...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/apiauth.php'; ...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/apiauth.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiUpdateAction extends ApiAuthAction class ApiStatusesUpdateAction extends ApiAuthAction
{ {
var $user = null; var $user = null;
......
...@@ -44,7 +44,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php'; ...@@ -44,7 +44,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiFriendsTimelineAction extends ApiBareAuthAction class ApiTimelineFriendsAction extends ApiBareAuthAction
{ {
var $user = null; var $user = null;
......
...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php'; ...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiMentionsAction extends ApiBareAuthAction class ApiTimelineMentionsAction extends ApiBareAuthAction
{ {
var $user = null; var $user = null;
......
...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/twitterapi.php'; ...@@ -43,7 +43,7 @@ require_once INSTALLDIR.'/lib/twitterapi.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiPublicTimelineAction extends TwitterapiAction class ApiTimelinePublicAction extends TwitterapiAction
{ {
var $notices = null; var $notices = null;
......
...@@ -45,7 +45,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php'; ...@@ -45,7 +45,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiUserTimelineAction extends ApiBareAuthAction class ApiTimelineUserAction extends ApiBareAuthAction
{ {
var $user = null; var $user = null;
......
...@@ -45,7 +45,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php'; ...@@ -45,7 +45,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiFollowersAction extends ApiSubscriptionsAction class ApiUserFollowersAction extends ApiSubscriptionsAction
{ {
/** /**
* Get the user's subscribers (followers) as an array of profiles * Get the user's subscribers (followers) as an array of profiles
......
...@@ -45,7 +45,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php'; ...@@ -45,7 +45,7 @@ require_once INSTALLDIR.'/lib/apibareauth.php';
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiFriendsAction extends ApiSubscriptionsAction class ApiUserFriendsAction extends ApiSubscriptionsAction
{ {
/** /**
* Get the user's subscriptions (friends) as an array of profiles * Get the user's subscriptions (friends) as an array of profiles
......
This diff is collapsed.
...@@ -271,90 +271,90 @@ class Router ...@@ -271,90 +271,90 @@ class Router
// statuses API // statuses API
$m->connect('api/statuses/public_timeline.:format', $m->connect('api/statuses/public_timeline.:format',
array('action' => 'ApiPublicTimeline', array('action' => 'ApiTimelinePublic',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/friends_timeline.:format', $m->connect('api/statuses/friends_timeline.:format',
array('action' => 'ApiFriendsTimeline', array('action' => 'ApiTimelineFriends',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/friends_timeline/:id.:format', $m->connect('api/statuses/friends_timeline/:id.:format',
array('action' => 'ApiFriendsTimeline', array('action' => 'ApiTimelineFriends',
'id' => '[a-zA-Z0-9]+', 'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/home_timeline.:format', $m->connect('api/statuses/home_timeline.:format',
array('action' => 'ApiFriendsTimeline', array('action' => 'ApiTimelineFriends',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/home_timeline/:id.:format', $m->connect('api/statuses/home_timeline/:id.:format',
array('action' => 'ApiFriendsTimeline', array('action' => 'ApiTimelineFriends',
'id' => '[a-zA-Z0-9]+', 'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/user_timeline.:format', $m->connect('api/statuses/user_timeline.:format',
array('action' => 'ApiUserTimeline', array('action' => 'ApiTimelineUser',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/user_timeline/:id.:format', $m->connect('api/statuses/user_timeline/:id.:format',
array('action' => 'ApiUserTimeline', array('action' => 'ApiTimelineUser',
'id' => '[a-zA-Z0-9]+', 'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/mentions.:format', $m->connect('api/statuses/mentions.:format',
array('action' => 'ApiMentions', array('action' => 'ApiTimelineMentions',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/mentions/:id.:format', $m->connect('api/statuses/mentions/:id.:format',
array('action' => 'ApiMentions', array('action' => 'ApiTimelineMentions',
'id' => '[a-zA-Z0-9]+', 'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/replies.:format', $m->connect('api/statuses/replies.:format',
array('action' => 'ApiMentions', array('action' => 'ApiTimelineMentions',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/replies/:id.:format', $m->connect('api/statuses/replies/:id.:format',
array('action' => 'ApiMentions', array('action' => 'ApiTimelineMentions',
'id' => '[a-zA-Z0-9]+', 'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)')); 'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/friends.:format', $m->connect('api/statuses/friends.:format',
array('action' => 'ApiFriends', array('action' => 'ApiUserFriends',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
$m->connect('api/statuses/friends/:id.:format', $m->connect('api/statuses/friends/:id.:format',
array('action' => 'ApiFriends', array('action' => 'ApiUserFriends',
'id' => '[a-zA-Z0-9]+', 'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
$m->connect('api/statuses/followers.:format', $m->connect('api/statuses/followers.:format',
array('action' => 'ApiFollowers', array('action' => 'ApiUserFollowers',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
$m->connect('api/statuses/followers/:id.:format', $m->connect('api/statuses/followers/:id.:format',
array('action' => 'ApiFollowers', array('action' => 'ApiUserFollowers',
'id' => '[a-zA-Z0-9]+', 'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
$m->connect('api/statuses/show.:format', $m->connect('api/statuses/show.:format',
array('action' => 'ApiShow', array('action' => 'ApiStatusesShow',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
$m->connect('api/statuses/show/:id.:format', $m->connect('api/statuses/show/:id.:format',
array('action' => 'ApiShow', array('action' => 'ApiStatusesShow',
'id' => '[0-9]+', 'id' => '[0-9]+',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
$m->connect('api/statuses/update.:format', $m->connect('api/statuses/update.:format',
array('action' => 'ApiUpdate', array('action' => 'ApiStatusesUpdate',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
$m->connect('api/statuses/destroy.:format', $m->connect('api/statuses/destroy.:format',
array('action' => 'ApiDestroy', array('action' => 'ApiStatusesDestroy',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
$m->connect('api/statuses/destroy/:id.:format', $m->connect('api/statuses/destroy/:id.:format',
array('action' => 'ApiDestroy', array('action' => 'ApiStatusesDestroy',
'id' => '[0-9]+', 'id' => '[0-9]+',
'format' => '(xml|json)')); 'format' => '(xml|json)'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment