diff --git a/docs/JSON-RPC.md b/docs/JSON-RPC.md index e9111187f4..a4c941489a 100644 --- a/docs/JSON-RPC.md +++ b/docs/JSON-RPC.md @@ -41,7 +41,7 @@ This snippet uses [jayson](https://www.npmjs.com/package/jayson) to connect usin const jayson = require("jayson/promise"); const client = new jayson.client.tcp({ host: "127.0.0.1", port: 22100 }); -client.request('jamulusserver/getServerInfo', {}) +client.request('jamulus/apiAuth', { secret: "...the secret from the file in --jsonrpcsecretfile..." }) .then(console.log) .catch(console.error) ``` diff --git a/tools/generate_json_rpc_docs.py b/tools/generate_json_rpc_docs.py index 0495c4b1af..b3aac24f72 100755 --- a/tools/generate_json_rpc_docs.py +++ b/tools/generate_json_rpc_docs.py @@ -270,7 +270,7 @@ def to_markdown(self): const jayson = require("jayson/promise"); const client = new jayson.client.tcp({ host: "127.0.0.1", port: 22100 }); -client.request('jamulusserver/getServerInfo', {}) +client.request('jamulus/apiAuth', { secret: "...the secret from the file in --jsonrpcsecretfile..." }) .then(console.log) .catch(console.error) ```