RubyDubee

  • Archive
  • RSS

Start to End : Twitter client in Shoes

Prerequisites :

  1. I hope you have Shoes installed on your machine, operating system does not matter :)
  2. oauth gem (gem install oauth will do the trick or sudo if you have to!)
  3. json gem as well(to parse the response) (gem install json)

Let’s start :
Step 1 : Register your application at Twitter (HERE), give some cool name like “Rubydubee”(not this x-( ).

Step 2 : Lets first write our own library(ehh? don’t worry you can just copy the code here :) ), But you can try to understand that… very small & simple if you know the OAuth protocol.(the oauth gem does all the magic.)

Step 3 : Let’s write our Application


The code is intuitive! isn’t it? if you need any help plz comment!
After you run this “shoes main.rb” it will look somewhat like this :

Thanks for reading this post!
Next post will bring following points :

  1. Error handling
  2. Sophisticated architectural design and UI
  3. More features

Keep reading!!! :)

    • #Shoes
    • #Twitter
    • #Json
    • #Oauth
    • #Ruby
  • 1 year ago
  • 10
  • Comments
  • Permalink
  • Share
    Tweet

About

I am Pradyumna and You can read my Rubyish Resume (once it is done) to know more about me!

Pages

  • My Rubyish Resume

Twitter

loading tweets…

I Dig These Posts

See more →
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr