Module: Twitter::Client::Activity

Included in:
Twitter::Client
Defined in:
lib/twitter/client/activity.rb

Overview

Defines methods related to URLs

Instance Method Summary collapse

Instance Method Details

#activity_about_me(options = {}) ⇒ Array

Note:

Undocumented

Returns activity about me

Examples:

Return activity about me

Twitter.activity_about_me

Parameters:

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :count (Integer)

    Specifies the number of records to retrieve. Must be less than or equal to 100.

  • :include_entities (Boolean, String, Integer)

    Include Tweet Entities when set to true, 't' or 1.

  • :since_id (Integer)

    Returns results with an ID greater than (that is, more recent than) the specified ID.

Returns:

  • (Array)

    An array of actions

Raises:

Rate Limited?:

  • Yes

Requires Authentication?:

  • Yes



21
22
23
24
25
# File 'lib/twitter/client/activity.rb', line 21

def activity_about_me(options={})
  get("/i/activity/about_me.json", options, :phoenix => true).map do |action|
    Twitter::ActionFactory.new(action)
  end
end

#activity_by_friends(options = {}) ⇒ Array

Note:

Undocumented

Returns activity by friends

Examples:

Return activity by friends

Twitter.activity_by_friends

Parameters:

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :count (Integer)

    Specifies the number of records to retrieve. Must be less than or equal to 100.

  • :include_entities (Boolean, String, Integer)

    Include Tweet Entities when set to true, 't' or 1.

  • :since_id (Integer)

    Returns results with an ID greater than (that is, more recent than) the specified ID.

Returns:

  • (Array)

    An array of actions

Raises:

Rate Limited?:

  • Yes

Requires Authentication?:

  • Yes



40
41
42
43
44
# File 'lib/twitter/client/activity.rb', line 40

def activity_by_friends(options={})
  get("/i/activity/by_friends.json", options, :phoenix => true).map do |action|
    Twitter::ActionFactory.new(action)
  end
end