diff options
author | Lance Stout <lancestout@gmail.com> | 2012-06-23 22:30:24 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-06-23 22:30:24 -0700 |
commit | 9307a6915f9e7e9d34dc561021e7dd10fb3cf5cd (patch) | |
tree | 1d09966f4536e090b63444a8a89188411f69aeeb | |
parent | 85ef2d8d0bcc92cd20d857d01bcf1bba56bc8edf (diff) | |
download | slixmpp-9307a6915f9e7e9d34dc561021e7dd10fb3cf5cd.tar.gz slixmpp-9307a6915f9e7e9d34dc561021e7dd10fb3cf5cd.tar.bz2 slixmpp-9307a6915f9e7e9d34dc561021e7dd10fb3cf5cd.tar.xz slixmpp-9307a6915f9e7e9d34dc561021e7dd10fb3cf5cd.zip |
Add notes to echo_client.py example on working with Facebook and MSN.
-rwxr-xr-x | examples/echo_client.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/echo_client.py b/examples/echo_client.py index 7e553c4a..73990089 100755 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -122,6 +122,19 @@ if __name__ == '__main__': xmpp.register_plugin('xep_0060') # PubSub xmpp.register_plugin('xep_0199') # XMPP Ping + # If you are connecting to Facebook and wish to use the + # X-FACEBOOK-PLATFORM authentication mechanism, you will need + # your API key and an access token. Then you'll set: + # xmpp.credentials['api_key'] = 'THE_API_KEY' + # xmpp.credentials['access_token'] = 'THE_ACCESS_TOKEN' + + # If you are connecting to MSN, then you will need an + # access token, and it does not matter what JID you + # specify other than that the domain is 'messenger.live.com', + # so '_@messenger.live.com' will work. You can specify + # the access token as so: + # xmpp.credentials['access_token'] = 'THE_ACCESS_TOKEN' + # If you are working with an OpenFire server, you may need # to adjust the SSL version used: # xmpp.ssl_version = ssl.PROTOCOL_SSLv3 |