Method: Twitter::REST::Users#update_profile_image
- Defined in:
- lib/twitter/rest/users.rb
#update_profile_image(image, options = {}) ⇒ Twitter::User
Note:
Updates the authenticating user's profile image. Note that this method expects raw multipart data, not a URL to an image.
Note:
This method asynchronously processes the uploaded file before updating the user's profile image URL. You can either update your local cache the next time you request the user's information, or, at least 5 seconds after uploading the image, ask for the updated URL using GET users/show.
Updates the authenticating user's profile image
112 113 114 |
# File 'lib/twitter/rest/users.rb', line 112 def update_profile_image(image, = {}) post_profile_image("/1.1/account/update_profile_image.json", image, ) end |