Skip to content

Commit

Permalink
Parse all responses with YAJL JSON parser
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Sep 23, 2010
1 parent 76b1fa3 commit c477f36
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/twitter/geo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
1 change: 0 additions & 1 deletion lib/twitter/local_trends.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions lib/twitter/search.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 0 additions & 1 deletion lib/twitter/trends.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c477f36

Please sign in to comment.