Permalink
Browse files

Parse all responses with YAJL JSON parser

  • Loading branch information...
sferik committed Sep 23, 2010
1 parent 76b1fa3 commit c477f368fde6161dbae59ea7bc7c7d182b15721b
Showing with 0 additions and 5 deletions.
  1. +0 −1 lib/twitter/geo.rb
  2. +0 −1 lib/twitter/local_trends.rb
  3. +0 −2 lib/twitter/search.rb
  4. +0 −1 lib/twitter/trends.rb
View
@@ -2,7 +2,6 @@ module Twitter
class Geo
include HTTParty
base_uri "api.twitter.com/#{Twitter.api_version}/geo"
- format :json
def self.place(place_id, query={})
Twitter.mash(Twitter.parse(get("/id/#{place_id}.json", :query => query)))
@@ -2,7 +2,6 @@ module Twitter
class LocalTrends
include HTTParty
base_uri "api.twitter.com/#{Twitter.api_version}/trends"
- format :json
def self.available(query={})
query.delete(:api_endpoint)
View
@@ -1,10 +1,8 @@
-require 'pp'
module Twitter
class Search
include HTTParty
include Enumerable
base_uri "search.twitter.com/search"
- format :json
attr_reader :result, :query
View
@@ -3,7 +3,6 @@
module Twitter
class Trends
include HTTParty
- format :json
def self.api_endpoint
@api_endpoint ||= "api.twitter.com/#{Twitter.api_version}/trends"

0 comments on commit c477f36

Please sign in to comment.