moomerman-twitter_oauth 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/twitter_oauth/account.rb +7 -0
  2. 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moomerman-twitter_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Taylor