From e5f767f964b651698812f19d33f5223b9a2ed508 Mon Sep 17 00:00:00 2001 From: Devendra Date: Fri, 5 Jul 2013 22:14:19 +0530 Subject: dir structure reorg --- python/examples/publish-example.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 python/examples/publish-example.py (limited to 'python/examples/publish-example.py') diff --git a/python/examples/publish-example.py b/python/examples/publish-example.py new file mode 100755 index 0000000..c97034b --- /dev/null +++ b/python/examples/publish-example.py @@ -0,0 +1,14 @@ +from Pubnub import Pubnub + +## Initiate Class +pubnub = Pubnub( publish_key='demo', subscribe_key='demo', ssl_on=False ) + +## Publish Example +info = pubnub.publish({ + 'channel' : 'hello_world', + 'message' : { + 'some_text' : 'Hello my World' + } +}) +print(info) + -- cgit v1.2.3