diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-20 18:07:25 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-20 18:07:25 -0700 |
commit | 081bff605a47e4e46f1842f81697386459792e11 (patch) | |
tree | b44fb69f9068487a3d1d743c0c60757d8b4113f7 /doc/developer | |
parent | 8a5c23fd50d26fb44d3d1d0f11d3bbd23872d060 (diff) | |
download | volse-hubzilla-081bff605a47e4e46f1842f81697386459792e11.tar.gz volse-hubzilla-081bff605a47e4e46f1842f81697386459792e11.tar.bz2 volse-hubzilla-081bff605a47e4e46f1842f81697386459792e11.zip |
zot_protocol values are true and false; it is only php print_r() that turns them into '1' or ''
Diffstat (limited to 'doc/developer')
-rw-r--r-- | doc/developer/zot_protocol.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/developer/zot_protocol.bb b/doc/developer/zot_protocol.bb index 0d2edfc2b..227c57a82 100644 --- a/doc/developer/zot_protocol.bb +++ b/doc/developer/zot_protocol.bb @@ -242,7 +242,7 @@ Example of discovery packet for 'mike@zothub.com' Discovery returns a JSON array with the following components: -'success' => ('1' or '') Operation was successful if '1'. Otherwise an optional 'message' may be present indicating the source of error. +'success' => (true or false) Operation was successful if true. Otherwise an optional 'message' may be present indicating the source of error. 'signed_token' => If a token parameter was provided in the request, it is prepended with the text 'token.' and then RSA signed with the channel private key and base64url encoded and returned as 'signed_token'. @@ -272,12 +272,12 @@ Discovery returns a JSON array with the following components: 'target_sig' => if a permissions target was specified, the signature is mirrored. -'searchable' => ('1' or '') '1' indicates this entry can be searched in a directory +'searchable' => (true or false) true indicates this entry can be searched in a directory [h5]Permissions[/h5] -'permisssions' => extensible array of permissions appropriate to this target, values are '1' or '' +'permissions' => extensible array of permissions appropriate to this target, values are true or false Permissions may include: [list] @@ -328,7 +328,7 @@ Each location is an array of 'address' => the webbie or user@host identifier associated with this location -'primary' => ('1' or '') whether or not this is the primary location for this channel where files and web pages are generally found +'primary' => (true or false) whether or not this is the primary location for this channel where files and web pages are generally found 'url' => url of the root of this DNS location e.g. https://example.com |