diff options
| author | Devendra | 2013-02-24 00:58:24 +0530 |
|---|---|---|
| committer | Devendra | 2013-02-24 00:58:24 +0530 |
| commit | 7d76f9d0d9c04c2fbc7740a08122fdc4c5622fa3 (patch) | |
| tree | 4c71abce3b3c8d0fa7ab217f5b742aa2fbd36e86 /python/3.2/publish-example.py | |
| download | pubnub-python-7d76f9d0d9c04c2fbc7740a08122fdc4c5622fa3.tar.bz2 | |
copying python, python-twisted, python-tornado
Diffstat (limited to 'python/3.2/publish-example.py')
| -rwxr-xr-x | python/3.2/publish-example.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/python/3.2/publish-example.py b/python/3.2/publish-example.py new file mode 100755 index 0000000..725df0b --- /dev/null +++ b/python/3.2/publish-example.py @@ -0,0 +1,14 @@ +from Pubnub import Pubnub + +## Initiate Class +pubnub = Pubnub( 'demo', 'demo', None, False ) + +## Publish Example +info = pubnub.publish({ + 'channel' : 'hello_world', + 'message' : { + 'some_text' : 'Hello my World' + } +}) +print(info) + |
