POST/osc/commands/executeHTTP/1.1Host:[camera ip address]:[httpPort]Content-Type:application/json;charset=utf-8Accept:application/jsonContent-Length:{CONTENT_LENGTH}X-XSRF-Protected:1{"name":"camera.setOptions","parameters":{"sessionId":"12ABC3","options":{"iso":200,"exposureCompensation":-2}}}
请求 (API 2)
POST/osc/commands/executeHTTP/1.1Host:[camera ip address]:[httpPort]Content-Type:application/json;charset=utf-8Accept:application/jsonContent-Length:{CONTENT_LENGTH}X-XSRF-Protected:1{"name":"camera.setOptions","parameters":{"options":{"iso":200,"exposureCompensation":-2}}}
POST/osc/commands/executeHTTP/1.1Host:[camera ip address]:[httpPort]Content-Type:application/json;charset=utf-8Accept:application/jsonContent-Length:{CONTENT_LENGTH}X-XSRF-Protected:1{"name":"camera.takePicture","parameters":{"sessionId":"12ABC3"}}
请求 (API 2)
POST/osc/commands/executeHTTP/1.1Host:[camera ip address]:[httpPort]Content-Type:application/json;charset=utf-8Accept:application/jsonContent-Length:{CONTENT_LENGTH}X-XSRF-Protected:1{"name":"camera.takePicture"}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-10-09。"],[[["The `/osc/commands/execute` API allows you to execute commands on the camera, such as adjusting settings or taking pictures."],["Input requires the command `name` and any necessary `parameters` defined in the OSC API Specification."],["Output provides the command `name`, `state`, and may include an `id`, `results`, `error`, or `progress` depending on the command and its execution status."],["Possible command states include `done`, `inProgress`, and `error`, with further details provided in the output fields."],["Refer to the OSC API Specification for specific command definitions, parameters, and result formats."]]],[]]