notify method

Future<void> notify({
  1. required int notifierId,
  2. required String subject,
  3. required String body,
  4. String? headers,
  5. String? scriptArgs,
})

Handler for notify.

Send a notification using Tautulli.

Required Parameters:

  • notifierId: The notifier identifier
  • subject: The subject of the message
  • body: The body of the message

Optional Parameters:

  • headers: The JSON headers for webhook notifications
  • scriptArgs: The arguments for script notifications

Implementation

Future<void> notify({
    required int notifierId,
    required String subject,
    required String body,
    String? headers,
    String? scriptArgs,
}) async => _commandNotify(_client, notifierId: notifierId, subject: subject, body: body, headers: headers, scriptArgs: scriptArgs);