diff options
Diffstat (limited to 'python-twisted/README.md')
| -rw-r--r-- | python-twisted/README.md | 32 | 
1 files changed, 32 insertions, 0 deletions
| diff --git a/python-twisted/README.md b/python-twisted/README.md index ea4173c..c74fb0d 100644 --- a/python-twisted/README.md +++ b/python-twisted/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() | 
