From 232f7389274f0d9ff06835fc5da0970f7918ba25 Mon Sep 17 00:00:00 2001 From: Devendra Date: Fri, 19 Jun 2015 23:57:53 +0530 Subject: readme update --- python/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/python/README.md b/python/README.md index 33e6235..91ca9f9 100644 --- a/python/README.md +++ b/python/README.md @@ -191,6 +191,23 @@ def callback(message): pubnub.history(channel, count=2, callback=callback, error=callback) ``` +#### HISTORY (including timetokens) + +``` +# 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) +``` + + #### GRANT ``` -- cgit v1.2.3