8000 Add friends/list, followers/list API methods · codezninja/codebird-php@7cd1186 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7cd1186

Browse files
committed
Add friends/list, followers/list API methods
1 parent 9be0e01 commit 7cd1186

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

codebird.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ private function _detectMethod($method, $params)
473473
'friendships/incoming',
474474
'friendships/outgoing',
475475
'friendships/show',
476+
'friends/list',
477+
'followers/list',
476478

477479
// Users
478480
'account/settings',
@@ -484,7 +486,6 @@ private function _detectMethod($method, $params)
484486
'users/search',
485487
'users/contributees',
486488
'users/contributors',
487-
'users/recommendations',
488489
'users/profile_banner',
489490

490491
// Suggested Users
@@ -532,6 +533,9 @@ private function _detectMethod($method, $params)
532533
'help/tos',
533534
'application/rate_limit_status',
534535

536+
// Old
537+
'users/recommendations',
538+
535539
// Internal
536540
'activity/about_me',
537541
'activity/by_friends',
@@ -565,10 +569,10 @@ private function _detectMethod($method, $params)
565569
'account/update_profile_background_image',
566570
'account/update_profile_colors',
567571
'account/update_profile_image',
568-
'account/remove_profile_banner',
569-
'account/update_profile_banner',
570572
'blocks/create',
571573
'blocks/destroy',
574+
'account/update_profile_banner',
575+
'account/remove_profile_banner',
572576

573577
// Favorites
574578
'favorites/destroy',
@@ -593,7 +597,7 @@ private function _detectMethod($method, $params)
593597
'geo/place',
594598

595599
// Spam Reporting
596-
'report_spam',
600+
'users/report_spam',
597601

598602
// OAuth
599603
'oauth/access_token',
@@ -768,7 +772,7 @@ private function _getEndpoint($method, $method_template)
768772
* @return mixed The API reply, encoded in the set return_format
769773
*/
770774

771-
private function _callApi($httpmethod, $method, $method_template, $params = array(), $multipart = false)
775+
private function _callApi($httpmethod, $method, $method_template, $params = array(), $multipart = false, $internal = false)
772776
{
773777
if (! function_exists('curl_init')) {
774778
throw new Exception('To make API requests, the PHP curl extension must be available.');

0 commit comments

Comments
 (0)
0