Module: Slack::Web::Stars

Included in:
Slack::Web
Defined in:
lib/slack/web/stars.rb

Overview

Module for the stars methods.

Constant Summary collapse

SCOPE =

Endpoint scope

'stars'

Instance Method Summary collapse

Instance Method Details

#stars_list(params = {}) ⇒ Object

Lists stars for a user.

Parameters:

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

    API call arguments

Options Hash (params):

  • 'user' (user)

    Show stars by this user. Defaults to the authed user.

  • 'count' (Object)

    Number of items to return per page.

  • 'page' (Object)

    Page number of results to return.

See Also:



23
24
25
26
# File 'lib/slack/web/stars.rb', line 23

def stars_list(params = {})
  response = @session.do_post "#{SCOPE}.list", params
  Slack.parse_response(response)
end