module Slack::Web::Api::Endpoints::Team
Public Instance Methods
Gets the access logs for the current team.
@option options [Object] :before
End of time range of logs to include in results (inclusive).
@option options [Object] :team_id
encoded team id to get logs from, required if org token is used.
@see api.slack.com/methods/team.accessLogs @see github.com/slack-ruby/slack-api-ref/blob/master/methods/team/team.accessLogs.json
# File lib/slack/web/api/endpoints/team.rb, line 18 def team_accessLogs(options = {}) post('team.accessLogs', options) end
Gets billable users information for the current team.
@option options [Object] :team_id
encoded team id to get the billable information from, required if org token is used.
@option options [user] :user
A user to retrieve the billable information for. Defaults to all users.
@see api.slack.com/methods/team.billableInfo @see github.com/slack-ruby/slack-api-ref/blob/master/methods/team/team.billableInfo.json
# File lib/slack/web/api/endpoints/team.rb, line 31 def team_billableInfo(options = {}) options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('team.billableInfo', options) end
Gets information about the current team.
@option options [Object] :team
Team to get info on, if omitted, will return information about the current team. Will only return team that the authenticated token is allowed to see through external shared channels.
@see api.slack.com/methods/team.info @see github.com/slack-ruby/slack-api-ref/blob/master/methods/team/team.info.json
# File lib/slack/web/api/endpoints/team.rb, line 43 def team_info(options = {}) post('team.info', options) end
Gets the integration logs for the current team.
@option options [Object] :app_id
Filter logs to this Slack app. Defaults to all logs.
@option options [Object] :change_type
Filter logs with this change type. Defaults to all logs.
@option options [Object] :service_id
Filter logs to this service. Defaults to all logs.
@option options [Object] :team_id
encoded team id to get logs from, required if org token is used.
@option options [user] :user
Filter logs generated by this user's actions. Defaults to all logs.
@see api.slack.com/methods/team.integrationLogs @see github.com/slack-ruby/slack-api-ref/blob/master/methods/team/team.integrationLogs.json
# File lib/slack/web/api/endpoints/team.rb, line 62 def team_integrationLogs(options = {}) options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('team.integrationLogs', options) end