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