kfdm/gntp — Issue #14: Example Usage Correction?
Author: TinBane
Created: 2011-11-08 00:05:42+00:00
State: open

I couldn't get the example usage to work, until I amended it. I also recommend setting the address as localhost, as that is the most likely type of test someone will carry out first.

import gntp.notifier
growl = gntp.notifier.GrowlNotifier(
applicationName = "My Application Name",
notifications = ["New Updates","New Messages"],
defaultNotifications = ["New Messages"],
hostname = "localhost",
password = "foo"
)
growl.register()

result = growl.notify(
noteType = "New Messages",
title = "You have a new message",
description = "A longer message description",
icon = "http://example.com/icon.png",
sticky = False,
priority = 1
)