Module: Slack::Web::Api::Endpoints::TeamExternalteams
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/team_externalTeams.rb
Instance Method Summary collapse
-
#team_externalTeams_disconnect(options = {}) ⇒ Object
Disconnect an external organization.
-
#team_externalTeams_list(options = {}) ⇒ Object
Returns a list of all the external teams connected and details about the connection.
Instance Method Details
#team_externalTeams_disconnect(options = {}) ⇒ Object
Disconnect an external organization.
16 17 18 19 |
# File 'lib/slack/web/api/endpoints/team_externalTeams.rb', line 16 def team_externalTeams_disconnect( = {}) raise ArgumentError, 'Required arguments :target_team missing' if [:target_team].nil? post('team.externalTeams.disconnect', ) end |
#team_externalTeams_list(options = {}) ⇒ Object
Returns a list of all the external teams connected and details about the connection.
40 41 42 43 44 45 46 47 48 |
# File 'lib/slack/web/api/endpoints/team_externalTeams.rb', line 40 def team_externalTeams_list( = {}) if block_given? Pagination::Cursor.new(self, :team_externalTeams_list, ).each do |page| yield page end else post('team.externalTeams.list', ) end end |