8000 Remove deprecated API methods · bitnull/codebird-php@758f6df · GitHub
[go: up one dir, main page]

Skip to content

Commit 758f6df

Browse files
committed
Remove deprecated API methods
1 parent 728a246 commit 758f6df

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ codebird-php - changelog
2121
- Remove sunsetting Direct Messages API
2222
- Remove sunsetting Streaming API
2323
- Remove contributor API methods
24+
- Remove deprecated statuses/update_with_media method
25+
- Remove deprecated statuses/update_profile_background_image method
2426

2527
3.1.0 (2016-02-15)
2628
+ #143 Add support for proxy types

src/codebird.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ class Codebird
334334
'account/remove_profile_banner',
335335
'account/settings',
336336
'account/update_profile',
337-
'account/update_profile_background_image',
338337
'account/update_profile_banner',
339338
'account/update_profile_image',
340339
'account_activity/all/:env_name/subscriptions',
@@ -446,7 +445,6 @@ class Codebird
446445
'statuses/retweet/:id',
447446
'statuses/unretweet/:id',
448447
'statuses/update',
449-
'statuses/update_with_media', // deprecated, use media/upload
450448
'ton/bucket/:bucket',
451449
'ton/bucket/:bucket?resumable=true',
452450
'tweets/search/30day/:env',
@@ -538,10 +536,8 @@ class Codebird
538536
*/
539537
protected static $_possible_files = [
540538
// Tweets
541-
'statuses/update_with_media' => ['media[]'],
542539
'media/upload' => ['media'],
543540
// Accounts
544-
'account/update_profile_background_image' => ['image'],
545541
'account/update_profile_image' => ['image'],
546542
'account/update_profile_banner' => ['banner']
547543
];
@@ -1760,12 +1756,10 @@ protected function _detectMultipart($method)
17601756
{
17611757
$multiparts = [
17621758
// Tweets
1763-
'statuses/update_with_media',
17641759
'media/upload',
17651760

17661761
// Users
17671762
// no multipart for these, for now:
1768-
//'account/update_profile_background_image',
17691763
//'account/update_profile_image',
17701764
//'account/update_profile_banner'
17711765
];

0 commit comments

Comments
 (0)
0