aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/history-example.py
blob: bf78c7df3073b6381f8c3978148b3dc289d03357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys
sys.path.append('../')
sys.path.append('./')
from Pubnub import Pubnub

## Initiat Class
pubnub = Pubnub( 'demo', 'demo', None, False )

## History Example
history = pubnub.history({
    'channel' : 'hello_world',
    'limit'   : 1
})
print(history)