aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/history-example.py
blob: c7c9547b5daf609532080fee97e637e4e503d688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
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)