[api version bump] Update API documentation in the example scripts

Give better examples, and rewrite options parsing to be more consistent across examples.
Make it more obvious that you can use "--user" and "--api-key" with our python examples.

This bumps our python bindings to v0.1.9

(imported from commit 297468088f864b7d585e567dc45523ea681f1856)
This commit is contained in:
acrefoot 2013-05-29 14:00:27 -04:00
parent 35b822b58d
commit dfb8a16a55
22 changed files with 92 additions and 87 deletions

View file

@ -23,7 +23,7 @@
# Change these values to configure authentication for the plugin
HUMBUG_USER = "git@example.com"
HUMBUG_USER = "git-bot@example.com"
HUMBUG_API_KEY = "0123456789abcdef0123456789abcdef"
# commit_notice_destination() lets you customize where commit notices

View file

@ -20,9 +20,9 @@ import org.apache.commons.httpclient.NameValuePair
class HumbugListener extends AbstractIssueEventListener {
Logger LOGGER = Logger.getLogger(HumbugListener.class.getName());
// Your humbug account's email address
// The email address of one of the bots you created on your Humbug settings page.
String humbugEmail = ""
// Your humbug API key
// That bot's API key.
String humbugAPIKey = ""
// What stream to send messages to. Must already exist.

View file

@ -1,5 +1,5 @@
# Fill these values in with the appropriate values for your realm, and
# then install this value at /etc/nagios3/humbugrc
[api]
email = nagios@example.com
email = nagios-bot@example.com
key = 0123456789abcdef0123456789abcdef

View file

@ -23,7 +23,7 @@
# Change these values to configure authentication for the plugin
HUMBUG_USER = "svn@example.com"
HUMBUG_USER = "svn-bot@example.com"
HUMBUG_API_KEY = "0123456789abcdef0123456789abcdef"
# commit_notice_destination() lets you customize where commit notices

View file

@ -23,7 +23,7 @@
# See humbug_trac.py for installation and configuration instructions
# Change these constants to configure the plugin:
HUMBUG_USER = "trac@example.com"
HUMBUG_USER = "trac-bot@example.com"
HUMBUG_API_KEY = "0123456789abcdef0123456789abcdef"
STREAM_FOR_NOTIFICATIONS = "trac"
TRAC_BASE_TICKET_URL = "https://trac.example.com/ticket"