Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Возвращает текущие настройки для запрошенных свойств. Эта команда была изменена на уровне API 2.
Параметры
sessionId: уникальный идентификатор сеанса строкового типа, полученный с помощью команды camera.startSession . Это поле устарело на уровне API 2.
optionNames: строковый массив имен свойств, которые нужно вернуть.
Результаты
параметры: пары JSON <key, value> запрошенных свойств. Значение может быть любого из следующих типов: String , String Array , Number , Number Array , Boolean , Object , Object Array . См. Опции .
Ошибки
MissingParameter: отсутствует один или несколько обязательных параметров; например, optionNames не указан.
validParameterName: одно или несколько имен входных параметров или имен опций не распознаны или не поддерживаются, например, этот код должен быть возвращен, если опция (например, captureInterval ) из уровня API 2 используется, когда clientVersion в Options равен 1.
validParameterValue: имена входных параметров распознаются, но одно или несколько значений недопустимы; например, sessionId не существует, неактивен или его тип данных неверен. Этот код ошибки устарел на уровне API 2, поскольку, если какое-либо имя параметра недопустимо, должно быть возвращено invalidParameterName .
[null,null,["Последнее обновление: 2024-11-08 UTC."],[[["\u003cp\u003eThis command returns current camera settings for the requested properties, specified in \u003ccode\u003eoptionNames\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAPI level 2 removed the requirement for a \u003ccode\u003esessionId\u003c/code\u003e, obtained from \u003ccode\u003ecamera.startSession\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eResults are provided in JSON format as \u003ccode\u003e<key, value>\u003c/code\u003e pairs within the \u003ccode\u003eoptions\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003ePossible errors include \u003ccode\u003emissingParameter\u003c/code\u003e if required parameters are absent and \u003ccode\u003einvalidParameterName\u003c/code\u003e for unsupported option names.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003einvalidParameterValue\u003c/code\u003e error was deprecated in API level 2 and replaced with \u003ccode\u003einvalidParameterName\u003c/code\u003e for invalid option names.\u003c/p\u003e\n"]]],["This command retrieves current settings for specified properties. It requires an array of `optionNames` to be provided. It returns a JSON object containing `\u003ckey, value\u003e` pairs of the requested properties within the `options` field. API level 1 required a `sessionId` obtained from `camera.startSession`, but this is deprecated in API level 2. Errors include `missingParameter`, `invalidParameterName` for unrecognized parameters, and `invalidParameterValue` for incorrect values in API 1.\n"],null,["# camera.getOptions\n\nReturns current settings for requested properties. **This command was modified in API level 2.**\n| **Note:** You must call the \\`camera.startSession\\` to obtain a unique session identifier command before calling this command. **This was deprecated in API level 2.**\n\nParameters\n----------\n\n- **sessionId:** Unique session identifier of type string obtained using the [camera.startSession](/streetview/open-spherical-camera/reference/camera/startsession) command. **This field was deprecated in API level 2.**\n- **optionNames:** A String Array of property names to return.\n\nResults\n-------\n\n- **options:** JSON `\u003ckey, value\u003e` pairs of the requested properties. The value can be any of the following types: `String`, `String Array`, `Number`, `Number Array`, `Boolean`, `Object`, `Object Array`. See [Options](/streetview/open-spherical-camera/reference/options).\n\nErrors\n------\n\n- **missingParameter:** One or more required parameters is missing; for example, `optionNames` is not specified.\n- **invalidParameterName:** One or more input parameter name or option name is unrecognized or unsupported, e.g. this code should be returned if an option (e.g. `captureInterval`) from API level 2 is used when `clientVersion` in [Options](/streetview/open-spherical-camera/reference/options) is 1.\n- **invalidParameterValue:** Input parameter names are recognized, but one or more values are invalid; for example, the `sessionId` doesn't exist, is inactive, or its data type is incorrect. **This error code was deprecated in\n API level 2** since when any option name is invalid, `invalidParameterName` should be returned.\n\n| Command I/O ----------- ||\n|------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| **Command Input (API level 1)** | ```text { \"parameters\": { \"sessionId\": \"12ABC3\", \"optionNames\": [ \"iso\", \"isoSupport\" ] } } ``` |\n| **Command Output (API level 1)** | ```text { \"results\": { \"options\": { \"iso\": 200, \"isoSupport\": [100, 200, 400, 800, 1600] } } } ``` |\n| **Command Output (Error) (API level 1)** | ```text { \"error\": { \"code\": \"invalidParameterName\", \"message\": \"Parameter optionNames contains unrecognized option XYZ.\" } } ``` |\n| **Command Input (API level 2)** | ```text { \"parameters\": { \"optionNames\": [ \"iso\", \"isoSupport\" ] } } ``` |\n| **Command Output (API level 2)** | ```text { \"results\": { \"options\": { \"iso\": 200, \"isoSupport\": [100, 200, 400, 800, 1600] } } } ``` |\n| **Command Output (Error) (API level 2)** | ```text { \"error\": { \"code\": \"invalidParameterName\", \"message\": \"Parameter optionNames contains unrecognized option XYZ.\" } } ``` |"]]