POST /v1/category/tree HTTP/1.1
Host: api-seller.ozon.ru
Client-Id: 836
Api-Key: 0296d4f2-70a1-4c09-b507-904fd05567b9
Content-Type: application/json
{
"category_id": 17036076,
"language": "EN"
}
from urllib.request import urlopen,Request
import json
url = "http://api-seller.ozon.ru/v1/category/tree"
headers = {
"Client-Id":836,
"Api-Key":"0296d4f2-70a1-4c09-b507-904fd05567b9",
"Content-Type":"application/json"
}
data = {
"category_id":17036076,
"language":"EN"
}
responce = urlopen(Request(url,bytes(json.dumps(data,indent=0),"utf-8"),headers))
Host: api-seller.ozon.ru
Client-Id: 836
Api-Key: 0296d4f2-70a1-4c09-b507-904fd05567b9
Content-Type: application/json
- засунуть в headers в виде dict{
"category_id": 17036076,
"language": "EN"
}
- в data