API: Use humbug.init_from_options in send-message example.

(imported from commit d44cd5fafa565b2f4709714c2777ad9ce513d953)
This commit is contained in:
Tim Abbott 2013-06-25 12:19:42 -04:00
parent 29a463dbf0
commit 1373c5535e

View file

@ -46,11 +46,7 @@ if len(args) == 0:
parser.error("You must specify recipients") parser.error("You must specify recipients")
sys.path.append(path.join(path.dirname(__file__), '..')) sys.path.append(path.join(path.dirname(__file__), '..'))
client = humbug.Client( client = humbug.init_from_options(options)
email=options.user,
api_key=options.api_key,
verbose=True,
site=options.site)
message_data = { message_data = {
"type": options.type, "type": options.type,