Skip to content

add new endpoint to get shard region #18

@n1ght-hunter

Description

@n1ght-hunter

can use this to get the shard and Region

https://127.0.0.1:(lockfile::port)/rnet-product-registry/v4/patch-states/products/valorant/patchlines/live + Basic riot:(lockafile::password)
will return data like

{
	"combined_patch_state": "up_to_date",
	"configuration": {
		"allowed_http_fallback_hostnames": [
			"valorant.dyn.riotcdn.net"
		],
		"bundles_url": "https://valorant.dyn.riotcdn.net/channels/public/bundles",
		"delete_foreign_paths": true,
		"dependencies": [
			{
				"args": [],
				"elevate": false,
				"hash": "",
				"id": "vanguard",
				"min_version": "",
				"url": "",
				"valid_exit_codes": "",
				"version": ""
			},
			{
				"args": [
					"/silent"
				],
				"elevate": true,
				"hash": "",
				"id": "DirectX",
				"min_version": "1.0.0",
				"url": "https://valorant.secure.dyn.riotcdn.net/x/riotclient/dependencies/DirectX_20190310.exe",
				"valid_exit_codes": "",
				"version": "1.0.0"
			}
		],
		"dynamic_tags": [
			{
				"heuristics": {
					"countries": [
						"ABW",
						"AFG",
						"AGO",
						"AIA",
						"ALA",
						"ALB",
						"AND",
						"ARE",
						"ARG",
						"ARM",
						"ASM",
                                               /// many more countries
					]
				},
				"tags": [
					"mature"
				]
			},
			{
				"heuristics": {
					"countries": [
						"TWN"
					]
				},
				"tags": [
					"twmlogo"
				]
			},
			{
				"heuristics": {
					"countries": [
						"VNM"
					]
				},
				"tags": [
					"vnglogo"
				]
			}
		],
		"excluded_paths": [],
		"id": "ap",
		"launchable_on_update_fail": false,
		"patch_notes_url": "",
		"patch_url": "https://valorant.secure.dyn.riotcdn.net/channels/public/releases/D51FE09FECA62E1A.manifest",
		"secondary_patchlines": [],
		"seed_url": "",
		"tags": [],
		"version": ""
	},
	"dependency_status": {
		"DirectX": {
			"arguments": null,
			"dependency": "DirectX",
			"download": null,
			"error": null,
			"errorType": null,
			"hash": "d4e9d40d1619634299cf228b0f4822f425b76fa051254d1aba555498c1155948",
			"id": "",
			"install": null,
			"optional": false,
			"phase": "Succeeded",
			"progress": 0.0
		}
	},
	"install": {
		"excluded_paths": [],
		"id": "valorant.live",
		"metadata_path": "C:/ProgramData/Riot Games/Metadata/valorant.live/valorant.live",
		"path": "C:/Riot Games/VALORANT/live"
	},
	"patch_requested": false,
	"patch_status": {
		"error": null,
		"launchable_on_update_fail": false,
		"progress": {
			"manifest": null,
			"phase": "None",
			"progress": 0.0,
			"repair": null,
			"update": null
		},
		"state": "up_to_date",
		"tags": [
			"mature",
			"en_US",
			"ap"
		],
		"url": "https://valorant.secure.dyn.riotcdn.net/channels/public/releases/D51FE09FECA62E1A.manifest"
	},
	"repair_code": null,
	"shards_data": {
		"live": "ap"
	},
	"user_cancelled_patching": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions