Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Fix stock by country issue (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrslev authored Mar 8, 2022
1 parent a524277 commit 307dfba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ikea_api/endpoints/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

class Stock(BaseIkeaAPI):
def _get_session_info(self) -> SessionInfo:
url = f"https://api.ingka.ikea.com/cia/availabilities/{self._const.country}/{self._const.language}"
url = f"https://api.ingka.ikea.com/cia/availabilities/ru/{self._const.country}"
headers = self._extend_default_headers(
{
"Accept": "*/*",
"Referer": f"{self._const.local_base_url}/order/delivery/",
"Accept": "application/json;version=2",
"Referer": "https://www.ikea.com/",
"X-Client-Id": "b6c117e5-ae61-4ef5-b4cc-e0b1e37f0631",
}
)
Expand Down

0 comments on commit 307dfba

Please sign in to comment.