Module: AngellistApi::Client::ActivityFeeds

Included in:
AngellistApi::Client
Defined in:
lib/angellist_api/client/activity_feeds.rb

Overview

Defines methods related to URLs

Instance Method Summary collapse

Instance Method Details

#feed_item(id) ⇒ Object

Returns a specific activity feed item.

Examples:

Get a feed item.

AngellistApi.feed_item('8fCC3')

Parameters:

  • id (String)

    String ID of the feed item to retrieve.



34
35
36
# File 'lib/angellist_api/client/activity_feeds.rb', line 34

def feed_item(id)
  get("1/feed/#{id}")
end

#get_feed(options = {}) ⇒ Object

Returns site activity. If authenticated and the personalized parameter is passed in, only activity from the authenticated user’s social graph is returned. No more than 25 items will be returned. Results are paginated and ordered by most recent story first.

Examples:

AngellistApi.get_feed

Parameters:

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

    A customizable set of options.

Options Hash (options):

  • :personalized (Integer)

    If set to 1 and a user is authenticated, only activity from the authenticated user’s social graph is returned.



22
23
24
# File 'lib/angellist_api/client/activity_feeds.rb', line 22

def get_feed(options={})
  get("1/feed", options)
end