diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-08-16 19:38:04 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-08-16 19:38:04 -0400 |
| commit | c34c6754001592d3831e111e0609a9cf1bbd4ce8 (patch) | |
| tree | 0de3cb98f64f469cd071d363a21e9282d85480f1 /pushover.py | |
| parent | 6284f4b908d67c639c862123cb7d44a34dc85ee0 (diff) | |
| download | python-pushover-c34c6754001592d3831e111e0609a9cf1bbd4ce8.tar.gz | |
Update the documentation
Diffstat (limited to 'pushover.py')
| -rw-r--r-- | pushover.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pushover.py b/pushover.py index b4c788b..5a8ed4c 100644 --- a/pushover.py +++ b/pushover.py @@ -66,12 +66,12 @@ class InitError(Exception): class UserError(Exception): - """Exception which is raised when initializing a :class:Client class - without specifying a :attr:`user_key`. + """Exception which is raised when initializing a :class:`Client` class + without specifying a :attr:`user_key` attribute. """ def __str__(self): - return "No user_key provided." + return "No :attr:`user_key` attribute provided." class RequestError(Exception): @@ -163,9 +163,14 @@ class Client: user to whom messages will be sent when calling the :func:`send_message` method. - * ``user``: the Pushover's ID of the user. - * ``device``: if not ``None`` further ties the Client object to the - specified device. + * ``user_key``: the Pushover's ID of the user. + * ``device``: if provided further ties the Client object to the specified + device. + * ``api_token``: if provided and the module wasn't previously initialized, + call the :func:`init` function to initialize it. + * ``config_path``: configuration file from which to import unprovided + parameters. See Configuration_. + * ``profile``: section of the configuration file to import parameters from. """ def __init__(self, user_key=None, device=None, api_token=None, |
