diff options
| author | Devendra | 2014-06-24 10:57:35 +0530 | 
|---|---|---|
| committer | Devendra | 2014-06-24 10:57:35 +0530 | 
| commit | 9217c4f7fdfb36cc67121d1ab173a1e2305c7a35 (patch) | |
| tree | 9f4c1c08abe1455c1c92e5549e892f5603f8dfba /python-tornado/README.md | |
| parent | f04a318d1825d28f24802ea0a5ecc27ea04c4a38 (diff) | |
| download | pubnub-python-9217c4f7fdfb36cc67121d1ab173a1e2305c7a35.tar.bz2 | |
[#73754750 develop] adding examples for grant, revoke, audit
Diffstat (limited to 'python-tornado/README.md')
| -rw-r--r-- | python-tornado/README.md | 32 | 
1 files changed, 32 insertions, 0 deletions
| diff --git a/python-tornado/README.md b/python-tornado/README.md index 53aad32..59e79b7 100644 --- a/python-tornado/README.md +++ b/python-tornado/README.md @@ -97,6 +97,38 @@ pubnub.presence(channel, callback=callback, error=callback)  pubnub.unsubscribe(channel='hello_world')  ``` +#### Grant Example +``` +authkey = "abcd" + +def callback(message): +    print(message) + +pubnub.grant(channel, authkey, True, True, callback=callback, error=callback) + +``` + +#### Audit Example +``` +authkey = "abcd" + +def callback(message): +    print(message) + +pubnub.audit(channel, authkey, callback=callback, error=callback) +``` + +#### Revoke Example +``` +authkey = "abcd" + +def callback(message): +    print(message) + +pubnub.revoke(channel, authkey, callback=callback, error=callback) +``` + +  #### IO Event Loop start  ```  pubnub.start() | 
