8 Commits

Author SHA1 Message Date
Rapptz
72e84a1b47 Change all email/password pair examples to use token. 2016-04-08 22:02:38 -04:00
Rapptz
2ebfbbe471 Examples now use Python 3.5. Remove echo.py example. 2016-01-06 11:34:49 -05:00
Rapptz
e87d54dd12 Update example code. 2015-12-06 03:10:18 -05:00
Rapptz
af9e5bc67a Simplify examples to no longer use logging or Client.is_logged_in
The logging module is no longer required to get diagnostic output
since we use `stderr` by default regardless of the logging module.
Which means that the logging module will only give a more verbose
output than is necessary.

Client.is_logged_in checking is no longer necessary since all HTTP
request handling now raise an exception if they fail so those chunks
are also gone.
2015-11-26 19:30:09 -05:00
Hornwitser
ea2f35fb24 Set up logging module in examples
Without setting up the logging module, a god number of error conditions
and warnings will never be output by the library.  This is a common
pitfall to forget and it's not documented good enough the consequences
of not setting up the logging module when developing applications with
this library.
2015-10-06 19:09:16 +02:00
Hornwitser
a98324fbf8 Add handling of login failure in examples
Check and handle login failure in the examples provided for using this
library.  This is a common error condition that should be handled by any
script using this library.
2015-10-06 19:09:16 +02:00
Rapptz
794991adb6 Add the ability to delete messages 2015-08-21 20:58:51 -04:00
Rapptz
f580441c10 Add on_message_delete event and Client.messages attribute. 2015-08-21 18:55:57 -04:00