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

#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.

  • :since (Integer)

    If a Unix timestamp is passed in via this parameter, only activity since that timestamp will be returned. A maximum of 25 items will be returned, starting with the oldest item. A cursor variable is also returned, which is the timestamp of the last item. You may call /feed again with since set to this value to get the next page of activity.



29
30
31
# File 'lib/angellist_api/client/activity_feeds.rb', line 29

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