aboutsummaryrefslogtreecommitdiffstats
path: root/python/3.2/publish-example.py
blob: 725df0bcbe6491a6860680ac5d5f806be6a9f289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)