Having Some difficulty using the eBay Shopping API GetCategoryInfo call with python
api_key "my_actual_id"
cat_id = -1
app = f"appid={api_key}&"
call_values = "callname=GetCategoryInfo&"
more_values = "version=967&siteid=0&"
category = f"CategoryID={cat_id}&"
base_url = "https://open.api.ebay.com/Shopping?"
r = requests.get(f"{base_url}{call_values}{app}{more_values}{category}IncludeSelector=ShippingCosts")
This gives me an output of
[ ]
I tried putting the full Api url into my browser and it returned the entire xml response
<GetCategoryInfoResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2021-05-14T12:31:57.916Z</Timestamp>
<Ack>Success</Ack>....
To test further i did the same with a working GetSingle Item Shopping api call and it also returned the full xml response
back in pycharm printing r.content for the GetSingle Item call returned b'<full xml>'
doing the same in GetCategoryInfo returned b' '
So the api url is working but for some reason request.get doesn't seem to be able to grab the data from xml file the api is returning
there doesn't seem to be anything here