From 8e0ed8eb07900451ea5f7bc9411a8b07ef217d18 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Thu, 31 Jan 2013 15:58:34 -0500 Subject: [PATCH] Update README to document new layout and installation instructions. (imported from commit ba4d8c4db31ef572b53f49b6792b926236bea553) --- api/README | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/api/README b/api/README index 33928f9c60..0c9349255a 100644 --- a/api/README +++ b/api/README @@ -5,6 +5,13 @@ The Humbug API Python bindings require the following Python libraries: * simplejson * requests (version >= 0.12 and << 1.0.0) + +#### Installing + +This package uses distutils, so you can just run: + + python setup.py install + #### Using the API For now, the only fully supported API operation is sending a message. @@ -13,7 +20,7 @@ please make sure we know you're using them so that we can notify you as we make any changes to them. The easiest way to use these API bindings is to base your tools off -of the example tools under api/examples in this distribution. +of the example tools under examples/ in this distribution. If you place your API key in `~/.humbugrc` the Python API bindings will automatically read it in. The format of the config file is as follows: @@ -56,7 +63,7 @@ msg will describe what went wrong. #### Sending messages -You can use the included `api/bin/humbug-send` script to send messages via the +You can use the included `humbug-send` script to send messages via the API directly from existing scripts. humbug-send hamlet@example.com cordelia@example.com -m \