Blog Update - How to update @Socialcast Profile Avatar with a ruby script:
In my previous post , I blogged about how to access the Socialcast community data without using the API. This is usually necessary when the API doesnt support any particular functionality which is provided by the site. This is true of the usecase of updating of the user’s profile avatar. Though there is a way to update the user profile in the API, but there is no obvious method of updating the user’s avatar. I asked Socialcast on twitter , but they didn’t answer so I went ahead with trying to use Mechanize to login to the site. I was finally able to update the profile avatar using the below script. Works like a charm. require 'Mechanize' agent = Mechanize.new agent.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE agent.get("https://demo.socialcast.com/login") form = agent.page.forms.first puts "Please enter user email id" form.email = gets.chomp puts "Please enter passwo...
Full article:
http://blog.ganeshzone.net/index.php/2012/12/how-to-updat...