From 86f7235829ca2ff29705f80714fc3548b27097ab Mon Sep 17 00:00:00 2001 From: Devendra Date: Thu, 14 May 2015 03:13:01 +0530 Subject: adding include_token option to history --- Pubnub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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': [ -- cgit v1.2.3