diff --git a/src/admin-api/methods.md b/src/admin-api/methods.md index 11e1471..ebcf904 100644 --- a/src/admin-api/methods.md +++ b/src/admin-api/methods.md @@ -6,7 +6,7 @@ - id ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "getelement", "params": {"token": "xxx", "id": "node:12141608846"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "getelement", "params": {"password": "xxx", "id": "node:12141608846"}, "id": 1}' https://api.btcmap.org/rpc ``` ## setelementtag @@ -16,7 +16,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "getelement", "params": {"token - value ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "setelementtag", "params": {"token": "xxx", "id": "node:12141608846", "name": "foo", "value": "bar"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "setelementtag", "params": {"password": "xxx", "id": "node:12141608846", "name": "foo", "value": "bar"}, "id": 1}' https://api.btcmap.org/rpc ``` ## removeelementtag @@ -26,7 +26,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "setelementtag", "params": {"to - tag ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "removeelementtag", "params": {"token": "xxx", "id": "node:12141608846", "tag": "foo"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "removeelementtag", "params": {"password": "xxx", "id": "node:12141608846", "tag": "foo"}, "id": 1}' https://api.btcmap.org/rpc ``` ## boostelement @@ -36,7 +36,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "removeelementtag", "params": { - days ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "boostelement", "params": {"token": "xxx", "id": "node:12141608846", "days": 7}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "boostelement", "params": {"password": "xxx", "id": "node:12141608846", "days": 7}, "id": 1}' https://api.btcmap.org/rpc ``` ## addelementcomment @@ -46,7 +46,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "boostelement", "params": {"tok - comment ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "addelementcomment", "params": {"token": "xxx", "id": "node:12141608846", "comment": "test comment"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "addelementcomment", "params": {"password": "xxx", "id": "node:12141608846", "comment": "test comment"}, "id": 1}' https://api.btcmap.org/rpc ``` @@ -59,7 +59,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "addelementcomment", "params": - tags ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "addarea", "params": {"token": "xxx", "tags": {"url_alias": "test-area", "geo_json": {"type":"Point","coordinates":[0,0]}}}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "addarea", "params": {"password": "xxx", "tags": {"url_alias": "test-area", "geo_json": {"type":"Point","coordinates":[0,0]}}}, "id": 1}' https://api.btcmap.org/rpc ``` ## getarea @@ -68,7 +68,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "addarea", "params": {"token": - id ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "getarea", "params": {"token": "xxx", "id": "test-area"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "getarea", "params": {"password": "xxx", "id": "test-area"}, "id": 1}' https://api.btcmap.org/rpc ``` ## setareatag @@ -79,7 +79,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "getarea", "params": {"token": - value ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "setareatag", "params": {"token": "xxx", "id": "test-area", "name": "foo", "value": "bar"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "setareatag", "params": {"password": "xxx", "id": "test-area", "name": "foo", "value": "bar"}, "id": 1}' https://api.btcmap.org/rpc ``` ## removeareatag @@ -89,7 +89,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "setareatag", "params": {"token - tag ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "removeareatag", "params": {"token": "xxx", "id": "test-area", "tag": "foo"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "removeareatag", "params": {"password": "xxx", "id": "test-area", "tag": "foo"}, "id": 1}' https://api.btcmap.org/rpc ``` ## gettrendingcountries @@ -99,7 +99,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "removeareatag", "params": {"to - period_end ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "gettrendingcountries", "params": {"token": "xxx", "period_start": "2024-01-01", "period_end": "2024-02-01"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "gettrendingcountries", "params": {"password": "xxx", "period_start": "2024-01-01", "period_end": "2024-02-01"}, "id": 1}' https://api.btcmap.org/rpc ``` ## gettrendingcommunities @@ -109,7 +109,7 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "gettrendingcountries", "params - period_end ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "gettrendingcommunities", "params": {"token": "xxx", "period_start": "2024-01-01", "period_end": "2024-02-01"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "gettrendingcommunities", "params": {"password": "xxx", "period_start": "2024-01-01", "period_end": "2024-02-01"}, "id": 1}' https://api.btcmap.org/rpc ``` ## removearea @@ -118,5 +118,5 @@ curl --data-binary '{"jsonrpc": "2.0", "method": "gettrendingcommunities", "para - id ```bash -curl --data-binary '{"jsonrpc": "2.0", "method": "removearea", "params": {"token": "xxx", "id": "test-area"}, "id": 1}' https://api.btcmap.org/rpc +curl --data-binary '{"jsonrpc": "2.0", "method": "removearea", "params": {"password": "xxx", "id": "test-area"}, "id": 1}' https://api.btcmap.org/rpc ```