From 6e55605fb274d2346dbca640d711201a5e491b62 Mon Sep 17 00:00:00 2001 From: eraseyourknees <112027564+eraseyourknees@users.noreply.github.com> Date: Mon, 29 Aug 2022 17:33:10 +0200 Subject: [PATCH] Update readme --- readme.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index cd18c19..000fbcc 100644 --- a/readme.md +++ b/readme.md @@ -82,7 +82,7 @@ Parameters: - **Supported values:** any update UUID -#### updateinfo.php: `uupUpdateInfo($updateId, $onlyInfo);` +#### updateinfo.php: `uupUpdateInfo($updateId, $onlyInfo, $ignoreFiles);` Outputs specified information of specified `updateId`. Parameters: @@ -92,12 +92,36 @@ Parameters: - `onlyInfo` - Key to output - **Supported values:** any string + - `ignoreFiles` - Skips the `files` key in the output + - **Supported values:** `true` or `false` + #### shared/main.php: `uupApiVersion();` Returns version of the API. Parameters: - None +#### shared/utils.php: `uupApiCheckUpdateId($updateId);` +Checks if the provided update ID is correctly formatted. + +Parameters: + - `updateId` - update ID to check + - **Supported values:** Any string + +#### shared/utils.php: `uupApiIsServer($skuId);` +Checks if the provided SKU ID is a Windows Sever SKU. + +Parameters: + - `skuId` - SKU ID to check + - **Supported values:** Any integer + +#### shared/utils.php: `uupApiBuildMajor($build);` +Returns a build major of the build number. + +Parameters: + - `build` - Build number (for example 22621.1) to split + - **Supported values:** Any correctly formatted build number + ### Error codes thrown by API **fetchupd.php** - UNKNOWN_ARCH