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