moomerman-twitter_oauth 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/twitter_oauth/account.rb +7 -0
- metadata +1 -1
@@ -20,5 +20,12 @@ module TwitterOAuth
|
|
20
20
|
JSON.parse(oauth_response.body)
|
21
21
|
end
|
22
22
|
|
23
|
+
# colors hash must contain at least one or more of the following keys :profile_background_color, :profile_text_color, :profile_link_color, :profile_sidebar_fill_color, :profile_sidebar_border_color
|
24
|
+
# returns extended user info object
|
25
|
+
def update_profile_colors(colors)
|
26
|
+
oauth_response = access_token.post('/account/update_profile_colors.json', colors)
|
27
|
+
JSON.parse(oauth_response.body)
|
28
|
+
end
|
29
|
+
|
23
30
|
end
|
24
31
|
end
|