1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-17 21:08:03 +02:00

Мелкие правки доков

This commit is contained in:
Anton 2024-10-29 19:38:16 +03:00
parent 47418c0b7e
commit 8543f304b5
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ When it comes to parameters, most often the data passed there are strings. This
+ Dates are passed as strings in ISO 8601 format
+ Arrays are passed as strings in the form`"['Val1','Val2','Val3']"`
+ JSON is passed as a path to a .json file
+ JSON is passed as a path to a .json file or a string in JSON format with single quotes
After executing the requested action, the program outputs the result and exits. By default, the output is displayed in the console, but you can redirect it to a file using either the standard method `>` or by using the common parameter `--out`. The difference between these two methods lies in the encoding of the saved file: when using `>`, it will be the encoding of the shell, whereas when using `--out`, it will be UTF-8 (used internally by OInt). Additionally, using `--out` is mandatory for methods returning binary data in the response (such as downloading a file from Google Drive, for example)

View File

@ -33,7 +33,7 @@ sidebar_position: 2
+ Даты - передаются как строки формата ISO 8601
+ Массивы - передаются как строки вида `"['Знач1','Знач2','Знач3']"`
+ JSON - передается как путь к файлу
+ JSON - передается как путь к файлу или строка в JSON формате с одинарными кавычками
После выполнения запрашиваемого действия, программа выводит результат и завершает работу. По умолчанию, вывод осуществляется в консоль, но вы можете перенаправить его в файл - как стандартным способом `>`, так и при помощи общего параметра `--out`. Разница между двумя этими способами заключается в кодировке сохраняемого файла: при использовании `>` это будет кодировка оболочки, а при использованни `--out` - UTF-8 (используется внутри OInt при работе). Также использование `--out` обязательно для методов, возвращающих двоичные данные в ответе (вроде скачивания файла из Google Drive, например)