HTTP JSON-RPC: Difference between revisions

From Monocle Security
Jump to navigation Jump to search
(Created page with " -> curl -X POST --user "admin:password" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":"id","method":"getRecordingTokens"}' -s http://localhost:9854/json <- {"result":["2334007959136872822","3191928883051777765","3271420254935038039"],"error":null,"id":"id"} -> curl -X POST --user "admin:password" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":"id","method":"getRecordingObjects","params":["3271420254935038039"]}' -s http://localhost:9854...")
(No difference)

Revision as of 18:09, 26 November 2023

-> curl -X POST --user "admin:password" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":"id","method":"getRecordingTokens"}' -s http://localhost:9854/json <- {"result":["2334007959136872822","3191928883051777765","3271420254935038039"],"error":null,"id":"id"}

-> curl -X POST --user "admin:password" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":"id","method":"getRecordingObjects","params":["3271420254935038039"]}' -s http://localhost:9854/json <- {"result":[{"id":1,"objectClass":"Handbag","x":0.301338,"y":0.89906,"width":0.234911,"height":0.10094}],"error":null,"id":"id"}