Skip to content

Commit

Permalink
Remove undocumented methods, retired in the APIpocalypse
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jun 11, 2013
1 parent fb63970 commit cf6a91f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
32 changes: 0 additions & 32 deletions lib/twitter/api/undocumented.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,6 @@ module API
module Undocumented
include Twitter::API::Utils

# Returns activity about me
#
# @note Undocumented
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Array] An array of actions
# @param options [Hash] A customizable set of options.
# @option options [Integer] :count Specifies the number of records to retrieve. Must be less than or equal to 100.
# @option options [Integer] :since_id Returns results with an ID greater than (that is, more recent than) the specified ID.
# @example Return activity about me
# Twitter.activity_about_me
def activity_about_me(options={})
objects_from_response(Twitter::ActionFactory, :get, "/i/activity/about_me.json", options)
end

# Returns activity by friends
#
# @note Undocumented
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid./
# @return [Array] An array of actions
# @param options [Hash] A customizable set of options.
# @option options [Integer] :count Specifies the number of records to retrieve. Must be less than or equal to 100.
# @option options [Integer] :since_id Returns results with an ID greater than (that is, more recent than) the specified ID.
# @example Return activity by friends
# Twitter.activity_by_friends
def activity_by_friends(options={})
objects_from_response(Twitter::ActionFactory, :get, "/i/activity/by_friends.json", options)
end

# @note Undocumented
# @rate_limited Yes
# @authentication Requires user context
Expand Down
28 changes: 0 additions & 28 deletions spec/twitter/api/undocumented_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,6 @@
@client = Twitter::Client.new
end

describe "#activity_about_me" do
before do
stub_get("/i/activity/about_me.json").to_return(:body => fixture("about_me.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "requests the correct resource" do
@client.activity_about_me
expect(a_get("/i/activity/about_me.json")).to have_been_made
end
it "returns activity about me" do
activity_about_me = @client.activity_about_me
expect(activity_about_me.first).to be_a Twitter::Action::Mention
end
end

describe "#activity_by_friends" do
before do
stub_get("/i/activity/by_friends.json").to_return(:body => fixture("by_friends.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "requests the correct resource" do
@client.activity_by_friends
expect(a_get("/i/activity/by_friends.json")).to have_been_made
end
it "returns activity by friends" do
activity_by_friends = @client.activity_by_friends
expect(activity_by_friends.first).to be_a Twitter::Action::Favorite
end
end

describe "#following_followers_of" do
context "with a screen_name passed" do
before do
Expand Down

0 comments on commit cf6a91f

Please sign in to comment.