10000 Add profile banner methods · UltraSimplified/codebird-php@3889ff5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3889ff5

Browse files
committed
Add profile banner methods
1 parent 85c44e7 commit 3889ff5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

codebird.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ private function _detectMethod($method)
547547
'account/update_profile_background_image',
548548
'account/update_profile_colors',
549549
'account/update_profile_image',
550+
'account/update_profile_banner',
551+
'account/remove_profile_banner',
550552
'account/settings',
551553
// Notifications
552554
'notifications/follow',
@@ -597,7 +599,8 @@ private function _detectMultipart($method)
597599
'statuses/update_with_media',
598600
// Accounts
599601
'account/update_profile_background_image',
600-
'account/update_profile_image'
602+
'account/update_profile_image',
603+
'account/update_profile_banner'
601604
);
602605
return in_array($method, $multiparts);
603606
}
@@ -623,7 +626,8 @@ private function _detectFilenames($method, &$params)
623626
'statuses/update_with_media' => 'media[]',
624627
// Accounts
625628
'account/update_profile_background_image' => 'image',
626-
'account/update_profile_image' => 'image'
629+
'account/update_profile_image' => 'image',
630+
'account/update_profile_banner' => 'banner'
627631
);
628632
// method might have files?
629633
if (! in_array($method, array_keys($possible_files))) {

0 commit comments

Comments
 (0)
0