getIncomingWebhookWithHttpInfo method
Get an incoming webhook
Get an incoming webhook given the hook id. ##### Permissions manage_webhooks
for system or manage_webhooks
for the specific team or manage_webhooks
for the channel.
Note: This method returns the HTTP Response
.
Parameters:
- String hookId (required): Incoming Webhook GUID
Implementation
Future<Response> getIncomingWebhookWithHttpInfo(
String hookId,
) async {
// ignore: prefer_const_declarations
final path = r'/hooks/incoming/{hook_id}'.replaceAll('{hook_id}', hookId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
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,
);
}