aboutsummaryrefslogtreecommitdiffstats
path: root/python-tornado/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'python-tornado/README.md')
-rw-r--r--python-tornado/README.md32
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()