aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-09-02 11:25:32 -0400
committerTeddy Wing2015-09-02 12:20:07 -0400
commitee0bb41acb739da5957f63b92c1162cb02adac64 (patch)
tree308c4122e33b96fa365cca91997bfef4fe3e5e82
parent1fe11f8f0c5f9582beaade07babf4825d5af5700 (diff)
downloadpubnub-python-update-argument-defaults-in-docstrings.tar.bz2
docs(grant,revoke,audit): Add `manage` to sample responseupdate-argument-defaults-in-docstrings
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.
-rw-r--r--pubnub.py32
1 files 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
+ }
+ }
}
}
},