diff options
Diffstat (limited to 'python/README.md')
| -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 80a6b08..10bb30f 100644 --- a/python/README.md +++ b/python/README.md @@ -191,6 +191,23 @@ def callback(message):  pubnub.history(channel=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  ``` | 
