From ee0bb41acb739da5957f63b92c1162cb02adac64 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 2 Sep 2015 11:25:32 -0400 Subject: docs(grant,revoke,audit): Add `manage` to sample response The `manage` argument gets returned in the response as `m:0` or `m:1`. Add it to the sample responses of each of these methods since current responses to those methods do include the `m` key. --- pubnub.py | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/pubnub.py b/pubnub.py index 0805139..c57ff91 100644 --- a/pubnub.py +++ b/pubnub.py @@ -456,7 +456,11 @@ class PubnubBase(object): "payload":{ "ttl":5, "auths":{ - "my_ro_authkey":{"r":1,"w":0} + "my_ro_authkey":{ + "m":0, + "r":1, + "w":0 + } }, "subscribe_key":"my_subkey", "level":"user", @@ -529,7 +533,11 @@ class PubnubBase(object): "payload":{ "ttl":5, "auths":{ - "my_authkey":{"r":0,"w":0} + "my_authkey":{ + "m":0, + "r":0, + "w":0 + } }, "subscribe_key":"my_subkey", "level":"user", @@ -596,9 +604,23 @@ class PubnubBase(object): "payload":{ "channels":{ "my_channel":{ - "auths":{"my_ro_authkey":{"r":1,"w":0}, - "my_rw_authkey":{"r":0,"w":1}, - "my_admin_authkey":{"r":1,"w":1} + "auths":{ + "my_ro_authkey":{ + "m":0, + "r":1, + "w":0 + }, + "my_rw_authkey":{ + "m":0, + "r":0, + "w":1 + }, + "my_admin_authkey":{ + "m":1, + "r":1, + "w":1 + } + } } } }, -- cgit v1.2.3