diff options
| author | Devendra | 2015-05-14 03:13:01 +0530 |
|---|---|---|
| committer | Devendra | 2015-05-14 03:13:01 +0530 |
| commit | 86f7235829ca2ff29705f80714fc3548b27097ab (patch) | |
| tree | 2a0abcf79b6d14ce916acfec189a27a9c6b32212 | |
| parent | 3aa150b81bf7f0159086ce0ec61b9171fdeb670a (diff) | |
| download | pubnub-python-86f7235829ca2ff29705f80714fc3548b27097ab.tar.bz2 | |
adding include_token option to history
| -rw-r--r-- | Pubnub.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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': [ |
