diff options
| author | Devendra | 2015-06-19 23:57:53 +0530 |
|---|---|---|
| committer | Devendra | 2015-06-19 23:57:53 +0530 |
| commit | 232f7389274f0d9ff06835fc5da0970f7918ba25 (patch) | |
| tree | d184934e5126a640d2257d01127ad9b981730879 | |
| parent | da687dca4001f64662540bb0791508a5a8a41fe0 (diff) | |
| download | pubnub-python-232f7389274f0d9ff06835fc5da0970f7918ba25.tar.bz2 | |
readme update
| -rw-r--r-- | python/README.md | 17 |
1 files changed, 17 insertions, 0 deletions
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 ``` |
