From da687dca4001f64662540bb0791508a5a8a41fe0 Mon Sep 17 00:00:00 2001 From: Devendra Date: Fri, 19 Jun 2015 23:57:26 +0530 Subject: history include_token --- python/examples/history.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'python') 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) -- cgit v1.2.3