getChannelsWithHttpInfo method
Reports every chat channel this org can send through, and whether it can send through it right now.
Reports every chat channel this org can send through, and whether it can send through it right now. A channel appears here whether or not it is connected — an empty list would leave a caller unable to tell "this org has no Slack" from "Slack is down", which are different problems with different fixes. Each entry carries the connection behind it, so the answer to "why can I not post?" is in the same response as the channel that cannot post.
Note: This method returns the HTTP Response.
Implementation
Future<Response> getChannelsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/v1/channels';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}