فهرست تمام استانهای تحت پوشش شبکه را برمیگرداند — اولین سطح از فرم انتخاب مبدأ/مقصد شما.
curl -s "https://ors.shoofer.taxi/Directions/getProvinces" \
-H "Authorization: Bearer $TOKEN"const res = await fetch("https://ors.shoofer.taxi/Directions/getProvinces", {
headers: { Authorization: `Bearer ${token}` }
});
const provinces = await res.json();resp = requests.get(
"https://ors.shoofer.taxi/Directions/getProvinces",
headers={"Authorization": f"Bearer {token}"},
)
provinces = resp.json()var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var res = await client.GetAsync("https://ors.shoofer.taxi/Directions/getProvinces");
var provinces = await res.Content.ReadFromJsonAsync<JsonElement>();[
{ "provinceID": 1, "provinceName": "تهران" },
{ "provinceID": 9, "provinceName": "خراسان رضوی" }
].png)