diff options
| author | Devendra | 2015-06-19 23:57:26 +0530 | 
|---|---|---|
| committer | Devendra | 2015-06-19 23:57:26 +0530 | 
| commit | da687dca4001f64662540bb0791508a5a8a41fe0 (patch) | |
| tree | d1a86ec648e146b88179ca4cb76d94bc6a85aaca /python | |
| parent | 4c2bb361dcad44226d37cfdb6b8f9d3e2f6789ff (diff) | |
| download | pubnub-python-da687dca4001f64662540bb0791508a5a8a41fe0.tar.bz2 | |
history include_token
Diffstat (limited to 'python')
| -rw-r--r-- | python/examples/history.py | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/python/examples/history.py b/python/examples/history.py index 5b92828..19593e1 100644 --- a/python/examples/history.py +++ b/python/examples/history.py @@ -33,3 +33,15 @@ def callback(message):      print(message)  pubnub.history(channel, count=2, callback=callback, error=callback) + +# Synchronous usage + +print pubnub.history(channel, count=2, include_token=True) + +# Asynchronous usage + + +def callback(message): +    print(message) + +pubnub.history(channel, count=2, include_token=True, callback=callback, error=callback) | 
