Browse files

Basic example about using grackle to communicate with twitter

  • Loading branch information...
TomK32 committed Nov 26, 2009
1 parent 6e8c56c commit a20245792a1bc22f9b202872fb8e0a70cfaf5b24
Showing with 24 additions and 0 deletions.
  1. +24 −0 grackle-client-server-communication.rb
@@ -0,0 +1,24 @@
+# grackle is small libary to access twitter, retrieve data from it, send data to twitter and more.
+# find out more about grackle here:
+require 'rubygems'
+require 'grackle'
+# To communicate with twitter we need a client.
+# yes, it's this simple, all boring things are hidden
+client =
+# First let's see for some information about a User
+puts y'TomK32')
+# We can also search
+puts y :q => 'ruby twitter'
+# here you have to change the username and password
+client =>{:type=>:basic,:username=>'yourusername',:password=>'yourpassword'})
+# and now you can put a new status
+client.statuses.update! :status=>'this status is from my grackle client'
+# Want to try more, read the official API and just try out.

0 comments on commit a202457

Please sign in to comment.