Skip to content

Instantly share code, notes, and snippets.

@vincentpaca
Created January 28, 2012 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentpaca/1696052 to your computer and use it in GitHub Desktop.
Save vincentpaca/1696052 to your computer and use it in GitHub Desktop.
Bitly test
1.9.3p0 :002 > BITLY_CLIENT
=> #<Bitly::V3::Client:0xb653398 @default_query_opts={:login=>"yourusername", :apiKey=>"yourkey"}>
1.9.3p0 :001 > BITLY_CLIENT.shorten("http://google.com")
=> #<Bitly::V3::Url:0xb5658c8 @client=#<Bitly::V3::Client:0xb653398 @default_query_opts={:login=>"yourusername", :apiKey=>"yourkey"}>, @short_url="http://bit.ly/xFMlrA", @long_url="http://google.com/", @user_hash="xFMlrA", @global_hash="LmvF", @new_hash=false, @user_clicks=nil, @global_clicks=nil, @title=nil, @created_by=nil, @aggregate_link=nil, @clicks_by_minute=nil>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment