NTFYAction

class ntfpy.NTFYAction(action: str, label: str)
Variables:
  • action (str) – action’s type

  • label (str) – action’s label

clearOnClick(clear=True)
Parameters:

clear (bool) – whether or not to clear the notification after action button is tapped

abstract format_json() Mapping[str, Any]

NTFYBroadcastAction

class ntfpy.NTFYBroadcastAction(label: str)

Extends NTFYAction

Variables:

label (str) – action’s label

addExtra(name: str, value: str)
Parameters:
  • name (str) – name of the extra

  • value (str) – value of the extra

format_json() Mapping[str, Any]

NTFYHttpAction

class ntfpy.NTFYHttpAction(label: str, url: str)

Extends NTFYAction

Variables:
  • label (str) – action’s label

  • url (str) – action’s url

setMethod(method: Literal['GET', 'POST', 'PUT', 'PATCH', 'DELETE'])
Parameters:

method (METHOD) – method to set

addHeader(name: str, value: str)
Parameters:
  • name (str) – name of the header

  • value (str) – value of the header

format_header() Mapping[str, Any]

NTFYViewAction

class ntfpy.NTFYViewAction(label: str, url: str)

Extends NTFYAction

Variables:
  • label (str) – action’s label

  • url (str) – action’s url

format_json() Mapping[str, Any]