forked from uup-dump/api
Fix backwards compatibility, update readme, update internal packs
This commit is contained in:
parent
a90dc04636
commit
a62526211a
@ -30,11 +30,11 @@ function uupListEditions($lang = 'en-us', $updateId = 0) {
|
|||||||
$build = explode('.', $info['build']);
|
$build = explode('.', $info['build']);
|
||||||
$build = $build[0];
|
$build = $build[0];
|
||||||
} else {
|
} else {
|
||||||
$build = 9841;
|
$build = 15063;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($info['arch'])) {
|
if(!isset($info['arch'])) {
|
||||||
$arch = null;
|
$info['arch'] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$genPack = uupGetGenPacks($build, $info['arch'], $updateId);
|
$genPack = uupGetGenPacks($build, $info['arch'], $updateId);
|
||||||
|
@ -30,11 +30,11 @@ function uupListLangs($updateId = 0) {
|
|||||||
$build = explode('.', $info['build']);
|
$build = explode('.', $info['build']);
|
||||||
$build = $build[0];
|
$build = $build[0];
|
||||||
} else {
|
} else {
|
||||||
$build = 9841;
|
$build = 15063;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($info['arch'])) {
|
if(!isset($info['arch'])) {
|
||||||
$arch = null;
|
$info['arch'] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$genPack = uupGetGenPacks($build, $info['arch'], $updateId);
|
$genPack = uupGetGenPacks($build, $info['arch'], $updateId);
|
||||||
|
50
readme.md
50
readme.md
@ -2,7 +2,7 @@ UUP dump API
|
|||||||
------------
|
------------
|
||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
#### fetchupd.php: `uupFetchUpd($arch, $ring, $flight, $build, $minor);`
|
#### fetchupd.php: `uupFetchUpd($arch, $ring, $flight, $build, $minor, $sku, $cacheRequests);`
|
||||||
Fetches latest update information from Windows Update servers.
|
Fetches latest update information from Windows Update servers.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
@ -10,19 +10,25 @@ Parameters:
|
|||||||
- **Supported values:** `amd64`, `arm64`, `x86`
|
- **Supported values:** `amd64`, `arm64`, `x86`
|
||||||
|
|
||||||
- `ring` - Ring to use when fetching information
|
- `ring` - Ring to use when fetching information
|
||||||
- **Supported values:** `WIF`, `WIS`, `RP`
|
- **Supported values:** `WIF`, `WIS`, `RP`, `RETAIL`
|
||||||
|
|
||||||
- `flight` - Flight to use when fetching information
|
- `flight` - Flight to use when fetching information
|
||||||
- **Supported values:** `Active`, `Skip`, `Current`
|
- **Supported values:** `Active`, `Skip`, `Current`
|
||||||
- **NOTE:** `Skip` is for `WIF` ring only. `Current` is for `RP` ring only.
|
- **NOTE:** `Skip` is for `WIF` ring only. `Current` is for `RP` ring only.
|
||||||
|
|
||||||
- `build` - Build number to use when fetching information
|
- `build` - Build number to use when fetching information
|
||||||
- **Supported values:** >= 15063 and <= 65536
|
- **Supported values:** >= 9841 and <= PHP_INT_MAX-1
|
||||||
|
|
||||||
- `minor` - Build minor to use when fetching information
|
- `minor` - Build minor to use when fetching information
|
||||||
- **Supported values:** >= 0 and <= 65536
|
- **Supported values:** >= 0 and <= PHP_INT_MAX-1
|
||||||
|
|
||||||
#### get.php: `uupGetFiles($updateId, $usePack, $desiredEdition);`
|
- `sku` - SKU number to use when fetching information
|
||||||
|
- **Supported values:** Any integer
|
||||||
|
|
||||||
|
- `cacheRequests` - Should request responses be cached? (optional)
|
||||||
|
- **Supported values:** 0 = Disable (default), 1 = Enable
|
||||||
|
|
||||||
|
#### get.php: `uupGetFiles($updateId, $usePack, $desiredEdition, $requestType);`
|
||||||
Fetches files from `updateId` update and parses to array.
|
Fetches files from `updateId` update and parses to array.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
@ -36,24 +42,40 @@ Parameters:
|
|||||||
- **Supported values:** any update UUID
|
- **Supported values:** any update UUID
|
||||||
- **NOTE:** You need to specify `usePack` to get successful request
|
- **NOTE:** You need to specify `usePack` to get successful request
|
||||||
|
|
||||||
#### listeditions.php: `uupListEditions($lang);`
|
- `$requestType` - Type of request to the API (optional)
|
||||||
Outputs list of supported editions for selected language.
|
- **Supported values:**
|
||||||
|
- 0 = uncached request (default)
|
||||||
|
- 1 = use cache if available
|
||||||
|
- 2 = offline information retrieval
|
||||||
|
|
||||||
|
#### listeditions.php: `uupListEditions($lang, $updateId);`
|
||||||
|
Outputs list of supported editions for selected language and Update ID.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
- `lang` - Generate list for selected language
|
- `lang` - Generate list for selected language
|
||||||
- **Supported values:** language name in xx-xx format
|
- **Supported values:** language name in xx-xx format
|
||||||
|
|
||||||
#### listid.php: `uupListIds();`
|
- `updateId` - Update identifier (optional)
|
||||||
|
- **Supported values:** any update UUID
|
||||||
|
|
||||||
|
#### listid.php: `uupListIds($search, $sortByDate);`
|
||||||
Outputs list of updates in fileinfo database.
|
Outputs list of updates in fileinfo database.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
- None
|
- `search` - Search query (optional)
|
||||||
|
- **Supported values:** any text
|
||||||
|
|
||||||
#### listlangs.php: `uupListLangs();`
|
- `sortByDate` - Sort results by creation date (optional)
|
||||||
Outputs list of languages supported by project.
|
- **Supported values:** 0 = Disable, 1 = Enable
|
||||||
|
|
||||||
|
|
||||||
|
#### listlangs.php: `uupListLangs($updateId);`
|
||||||
|
Outputs list of languages supported for specified Update ID.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
- None
|
- `updateId` - Update identifier (optional)
|
||||||
|
- **Supported values:** any update UUID
|
||||||
|
|
||||||
|
|
||||||
#### updateinfo.php: `uupUpdateInfo($updateId, $onlyInfo);`
|
#### updateinfo.php: `uupUpdateInfo($updateId, $onlyInfo);`
|
||||||
Outputs specified information of specified `updateId`.
|
Outputs specified information of specified `updateId`.
|
||||||
@ -88,12 +110,16 @@ Parameters:
|
|||||||
- UNSUPPORTED_EDITION
|
- UNSUPPORTED_EDITION
|
||||||
- UNSUPPORTED_COMBINATION
|
- UNSUPPORTED_COMBINATION
|
||||||
- EMPTY_FILELIST
|
- EMPTY_FILELIST
|
||||||
|
- MISSING_FILES
|
||||||
|
- NO_FILES
|
||||||
|
- XML_PARSE_ERROR
|
||||||
|
|
||||||
**listeditions.php**
|
**listeditions.php**
|
||||||
- UNSUPPORTED_LANG
|
- UNSUPPORTED_LANG
|
||||||
|
|
||||||
**listid.php**
|
**listid.php**
|
||||||
- NO_FILEINFO_DIR
|
- NO_FILEINFO_DIR
|
||||||
|
- SEARCH_NO_RESULTS
|
||||||
|
|
||||||
**updateinfo.php**
|
**updateinfo.php**
|
||||||
- UPDATE_INFORMATION_NOT_EXISTS
|
- UPDATE_INFORMATION_NOT_EXISTS
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.21.2';
|
return '1.21.3';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once dirname(__FILE__).'/auths.php';
|
require_once dirname(__FILE__).'/auths.php';
|
||||||
|
BIN
shared/packs/0493cccaf960aed7043c158d407842d2f470195a.json.gz
Normal file
BIN
shared/packs/0493cccaf960aed7043c158d407842d2f470195a.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/05e13cd691ae21ac587d00aed317b088e920ab92.json.gz
Normal file
BIN
shared/packs/05e13cd691ae21ac587d00aed317b088e920ab92.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/0b13c3cb2d6d33e427af3e23cf0a950f0b54182c.json.gz
Normal file
BIN
shared/packs/0b13c3cb2d6d33e427af3e23cf0a950f0b54182c.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/0be28e7f73786ceefe01edeea555fb6b613c2133.json.gz
Normal file
BIN
shared/packs/0be28e7f73786ceefe01edeea555fb6b613c2133.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/0e43405ecaeeaf7f17613a56355953a268b9ec1a.json.gz
Normal file
BIN
shared/packs/0e43405ecaeeaf7f17613a56355953a268b9ec1a.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/1436f40615c1779758385f34f5d58615001b74f4.json.gz
Normal file
BIN
shared/packs/1436f40615c1779758385f34f5d58615001b74f4.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/160fff573d9d789983796b7695d2fa4c42c1f912.json.gz
Normal file
BIN
shared/packs/160fff573d9d789983796b7695d2fa4c42c1f912.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/16d6fe416895982d453c6aa0dbcf4029536a4189.json.gz
Normal file
BIN
shared/packs/16d6fe416895982d453c6aa0dbcf4029536a4189.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/18c294d075c67272097d4b9f6d7646b38c828a39.json.gz
Normal file
BIN
shared/packs/18c294d075c67272097d4b9f6d7646b38c828a39.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/1ab121756291435c1240ff73026ca09cb01d8fee.json.gz
Normal file
BIN
shared/packs/1ab121756291435c1240ff73026ca09cb01d8fee.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/219373bbdd267c636bc09ae8661b04c3683b31c2.json.gz
Normal file
BIN
shared/packs/219373bbdd267c636bc09ae8661b04c3683b31c2.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/21f71d842489390c56547c3ba0bf282ec285b392.json.gz
Normal file
BIN
shared/packs/21f71d842489390c56547c3ba0bf282ec285b392.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/299e358dbe33f3b9bb584c5876513dfdbe7b196e.json.gz
Normal file
BIN
shared/packs/299e358dbe33f3b9bb584c5876513dfdbe7b196e.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/352c4e68b5f59faf4c2886ae12a04223b3ea2550.json.gz
Normal file
BIN
shared/packs/352c4e68b5f59faf4c2886ae12a04223b3ea2550.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/360e162a278a3fb07110486b59908a37dbbe0841.json.gz
Normal file
BIN
shared/packs/360e162a278a3fb07110486b59908a37dbbe0841.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/3ed269c8570dda2578746ed78668e0f06addfa76.json.gz
Normal file
BIN
shared/packs/3ed269c8570dda2578746ed78668e0f06addfa76.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/40ae28494a6fa95ee7e7dfcd11e48d2c5506f3e7.json.gz
Normal file
BIN
shared/packs/40ae28494a6fa95ee7e7dfcd11e48d2c5506f3e7.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/449940393a39a618eff6e62236623ed84e4ac35d.json.gz
Normal file
BIN
shared/packs/449940393a39a618eff6e62236623ed84e4ac35d.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/449da0d56e1b7b95052852fb63e6aba5ede734e2.json.gz
Normal file
BIN
shared/packs/449da0d56e1b7b95052852fb63e6aba5ede734e2.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/490ccc5bd30237560ed1be8dcc697fde7a90ebd0.json.gz
Normal file
BIN
shared/packs/490ccc5bd30237560ed1be8dcc697fde7a90ebd0.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/4e4a62aca108bcaecd7d89bccc315734a8dd3917.json.gz
Normal file
BIN
shared/packs/4e4a62aca108bcaecd7d89bccc315734a8dd3917.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/4e934a4de01738933cccdf9a83c87d4f93fe6c76.json.gz
Normal file
BIN
shared/packs/4e934a4de01738933cccdf9a83c87d4f93fe6c76.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/4f02577fa26078e1adc7302c437a7f08e8a7e99d.json.gz
Normal file
BIN
shared/packs/4f02577fa26078e1adc7302c437a7f08e8a7e99d.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/5bff3c4ad6b9059ee23aa29f94fe82557448ebbb.json.gz
Normal file
BIN
shared/packs/5bff3c4ad6b9059ee23aa29f94fe82557448ebbb.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/6551eeb67fe90da858f1fa781295cb6e6b680424.json.gz
Normal file
BIN
shared/packs/6551eeb67fe90da858f1fa781295cb6e6b680424.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/75a8c8fcc5d59b148ed63e03a75e3377a2e96911.json.gz
Normal file
BIN
shared/packs/75a8c8fcc5d59b148ed63e03a75e3377a2e96911.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/75fdf9289b05ba5171ed93aa6aeaf0bc5cdd25f8.json.gz
Normal file
BIN
shared/packs/75fdf9289b05ba5171ed93aa6aeaf0bc5cdd25f8.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/7dfb42d9c49e08a9bcd91e1807bda76efdc34008.json.gz
Normal file
BIN
shared/packs/7dfb42d9c49e08a9bcd91e1807bda76efdc34008.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/825f9ee76be47dec3a5e40e36a802aa05dd0450c.json.gz
Normal file
BIN
shared/packs/825f9ee76be47dec3a5e40e36a802aa05dd0450c.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/8b009fd888189ee3e5de84a2114357826ee74dbb.json.gz
Normal file
BIN
shared/packs/8b009fd888189ee3e5de84a2114357826ee74dbb.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/8de45306d9e66cd3c0c7db33167f789bd1f46b22.json.gz
Normal file
BIN
shared/packs/8de45306d9e66cd3c0c7db33167f789bd1f46b22.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/902c35f09a7fb8c3671284ec0b09adea166a7886.json.gz
Normal file
BIN
shared/packs/902c35f09a7fb8c3671284ec0b09adea166a7886.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/9374530cd25511524d60700aa7ed9ded6c68b8c5.json.gz
Normal file
BIN
shared/packs/9374530cd25511524d60700aa7ed9ded6c68b8c5.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/955aad2a8f3af09973875af85867a1a0054a2492.json.gz
Normal file
BIN
shared/packs/955aad2a8f3af09973875af85867a1a0054a2492.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/9d1bf73e74b0efe85171b67d5b3f71a87178ccc4.json.gz
Normal file
BIN
shared/packs/9d1bf73e74b0efe85171b67d5b3f71a87178ccc4.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/9e9cd93810136656bd198188b9be35455610c0f9.json.gz
Normal file
BIN
shared/packs/9e9cd93810136656bd198188b9be35455610c0f9.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/a513f57fed9e9a835a72424fd01b4ff3c33834f9.json.gz
Normal file
BIN
shared/packs/a513f57fed9e9a835a72424fd01b4ff3c33834f9.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/ad7b8d7888ff9c39e30c6de1c8c52f4679d57f6e.json.gz
Normal file
BIN
shared/packs/ad7b8d7888ff9c39e30c6de1c8c52f4679d57f6e.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/ae4a2bf20e9c89f7fbaa13fa033bcedd78e652eb.json.gz
Normal file
BIN
shared/packs/ae4a2bf20e9c89f7fbaa13fa033bcedd78e652eb.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/aefd96f75cd4270d6a213123f8174717230c5ba4.json.gz
Normal file
BIN
shared/packs/aefd96f75cd4270d6a213123f8174717230c5ba4.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/b2af06bc569d9d86c9cd812b6e54ed79b6e6a00a.json.gz
Normal file
BIN
shared/packs/b2af06bc569d9d86c9cd812b6e54ed79b6e6a00a.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/b3092fae9de3e7851fe85b77e0c0c128023f84e8.json.gz
Normal file
BIN
shared/packs/b3092fae9de3e7851fe85b77e0c0c128023f84e8.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/b36faefbfd43bfc98d4c11b7366c9b2661ed08ad.json.gz
Normal file
BIN
shared/packs/b36faefbfd43bfc98d4c11b7366c9b2661ed08ad.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/b666647599345fbf78364f9e20500cd53c0da431.json.gz
Normal file
BIN
shared/packs/b666647599345fbf78364f9e20500cd53c0da431.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/b9d091f8427f599905b5486f06765ad7ce998491.json.gz
Normal file
BIN
shared/packs/b9d091f8427f599905b5486f06765ad7ce998491.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/c702eccd536df0e8ca2c94577280ad083ce0b82b.json.gz
Normal file
BIN
shared/packs/c702eccd536df0e8ca2c94577280ad083ce0b82b.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/c8b4ba05febbf3da0ac0a26f6b0aa63de8b3b1a8.json.gz
Normal file
BIN
shared/packs/c8b4ba05febbf3da0ac0a26f6b0aa63de8b3b1a8.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/d21ba7afd9dcfc6b0d3099a9210a0aedb8e8b468.json.gz
Normal file
BIN
shared/packs/d21ba7afd9dcfc6b0d3099a9210a0aedb8e8b468.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/d52ba0a8e330d93adda6bd2ef3087d78e3fe6ed9.json.gz
Normal file
BIN
shared/packs/d52ba0a8e330d93adda6bd2ef3087d78e3fe6ed9.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/d5ab69bdff6c8735f37c4f0f7bf3fe47e3feba8b.json.gz
Normal file
BIN
shared/packs/d5ab69bdff6c8735f37c4f0f7bf3fe47e3feba8b.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/d99ba57957ebb675143b95f03fe485531bb71951.json.gz
Normal file
BIN
shared/packs/d99ba57957ebb675143b95f03fe485531bb71951.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/dbf1387ea8688df18878f15665151882d08b78b0.json.gz
Normal file
BIN
shared/packs/dbf1387ea8688df18878f15665151882d08b78b0.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/e4dfa134e9adf152652393e482fe246e0d3ead17.json.gz
Normal file
BIN
shared/packs/e4dfa134e9adf152652393e482fe246e0d3ead17.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/ee8d051d48e917e9beb3142c37d069c0c10acc47.json.gz
Normal file
BIN
shared/packs/ee8d051d48e917e9beb3142c37d069c0c10acc47.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/fbe5a5b342f4fed4e4e02259c235ab8c67f73e26.json.gz
Normal file
BIN
shared/packs/fbe5a5b342f4fed4e4e02259c235ab8c67f73e26.json.gz
Normal file
Binary file not shown.
BIN
shared/packs/ffca8d090dbf571550aa75382a3098156fc23433.json.gz
Normal file
BIN
shared/packs/ffca8d090dbf571550aa75382a3098156fc23433.json.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user