How to update avatar from SoundCloud API in ruby? -


how can update user's avatar on soundcloud?

soundcloud.new( {   :client_id => client_id,   :client_secret => client_secret,   :access_token => user.all[1].code }).put('/me', :user => {:avatar_url => file.new(rails.root.join('test.jpg').to_s, 'rb')}) 

i tried code not working. tried fields :avatar, :image


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -