getChannelsAllowlistWithHttpInfo method

Future<Response> getChannelsAllowlistWithHttpInfo({
  1. String? channel,
})

Returns the caller org's access policy for one channel: whether DMs are pairing-gated, allowlisted or open, whether group rooms are open, allowlisted or disabled, the config-managed DM and group allow entries, the senders approved through PAIRING (read-only here), and the org's named access groups.

Returns the caller org's access policy for one channel: whether DMs are pairing-gated, allowlisted or open, whether group rooms are open, allowlisted or disabled, the config-managed DM and group allow entries, the senders approved through PAIRING (read-only here), and the org's named access groups. An unknown channel is a 404.

Note: This method returns the HTTP Response.

Parameters:

  • String channel: Channel is the transport to read: discord, slack, teams, telegram or whatsapp. Required; an unknown value is a 404.

Implementation

Future<Response> getChannelsAllowlistWithHttpInfo({ String? channel, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/channels/allowlist';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (channel != null) {
    queryParams.addAll(_queryParams('', 'channel', channel));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}