aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevendra2015-05-14 03:13:01 +0530
committerDevendra2015-05-14 03:13:01 +0530
commit86f7235829ca2ff29705f80714fc3548b27097ab (patch)
tree2a0abcf79b6d14ce916acfec189a27a9c6b32212
parent3aa150b81bf7f0159086ce0ec61b9171fdeb670a (diff)
downloadpubnub-python-86f7235829ca2ff29705f80714fc3548b27097ab.tar.bz2
adding include_token option to history
-rw-r--r--Pubnub.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Pubnub.py b/Pubnub.py
index 74b511f..7fcc38e 100644
--- a/Pubnub.py
+++ b/Pubnub.py
@@ -866,7 +866,7 @@ class PubnubBase(object):
def history(self, channel, count=100, reverse=False,
- start=None, end=None, callback=None, error=None):
+ start=None, end=None, include_token=False, callback=None, error=None):
"""This method fetches historical messages of a channel.
PubNub Storage/Playback Service provides real-time access to an unlimited
@@ -922,6 +922,7 @@ class PubnubBase(object):
params['end'] = end
params['auth_key'] = self.auth_key
params['pnsdk'] = self.pnsdk
+ params['include_token'] = 'true' if include_token else 'false'
## Get History
return self._request({'urlcomponents': [