diff options
| author | Devendra | 2015-06-25 11:42:00 +0530 | 
|---|---|---|
| committer | Devendra | 2015-06-25 11:42:00 +0530 | 
| commit | ad89de8312f3f407150c7eb411cbf02765910e53 (patch) | |
| tree | 6f683a1d154a4d4f3bb11ed6f2d56ec813db6ccb /python/README.md | |
| parent | 4a44c563ea8af7211197d166596be41ede05c179 (diff) | |
| parent | 232f7389274f0d9ff06835fc5da0970f7918ba25 (diff) | |
| download | pubnub-python-ad89de8312f3f407150c7eb411cbf02765910e53.tar.bz2 | |
Merge branch 'develop'
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  ``` | 
