listWhatsAppFlows method
Lists all WhatsApp Flows for a WhatsApp Business Account. Returns summary information including Flow ID, name, status, and categories.
May throw AccessDeniedByMetaException.
May throw DependencyException.
May throw InternalServiceException.
May throw InvalidParametersException.
May throw ResourceNotFoundException.
May throw ThrottledRequestException.
Parameter id :
The ID of the WhatsApp Business Account to list Flows for.
Parameter maxResults :
The maximum number of results to return per page.
Parameter nextToken :
The token for the next page of results.
Implementation
Future<ListWhatsAppFlowsOutput> listWhatsAppFlows({
required String id,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
'id': [id],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v1/whatsapp/flow/list',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListWhatsAppFlowsOutput.fromJson(response);
}