Update API for removal for 'account/update_profile_colors'
authorAaron Hill <aa1ronham@gmail.com>
Sat, 5 Nov 2016 21:28:24 +0000 (17:28 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Sat, 5 Nov 2016 21:45:34 +0000 (17:45 -0400)
tweepy/api.py

index b925da3884a84cc9efee4f58850701dc2ac96592..b409d391933d534d760313cf346f2c10471fb7ec 100644 (file)
@@ -661,24 +661,6 @@ class API(object):
             require_auth=True
         )
 
-    @property
-    def update_profile_colors(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/post/account/update_profile_colors
-            :allowed_param:'profile_background_color', 'profile_text_color',
-             'profile_link_color', 'profile_sidebar_fill_color',
-             'profile_sidebar_border_color'],
-        """
-        return bind_api(
-            api=self,
-            path='/account/update_profile_colors.json',
-            method='POST',
-            payload_type='user',
-            allowed_param=['profile_background_color', 'profile_text_color',
-                           'profile_link_color', 'profile_sidebar_fill_color',
-                           'profile_sidebar_border_color'],
-            require_auth=True
-        )
-
     def update_profile_image(self, filename, file_=None):
         """ :reference: https://dev.twitter.com/rest/reference/post/account/update_profile_image
             :allowed_param:'include_entities', 'skip_status'
@@ -732,7 +714,7 @@ class API(object):
             path='/account/update_profile.json',
             method='POST',
             payload_type='user',
-            allowed_param=['name', 'url', 'location', 'description'],
+            allowed_param=['name', 'url', 'location', 'description', 'profile_link_color'],
             require_auth=True
         )