diff options
Diffstat (limited to 'python/3.3/publish-example.py')
| -rwxr-xr-x | python/3.3/publish-example.py | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/python/3.3/publish-example.py b/python/3.3/publish-example.py new file mode 100755 index 0000000..725df0b --- /dev/null +++ b/python/3.3/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) + | 
