GET works in Postman, but not in python. Python cannot read full data, only metadata returned

134 Views Asked by At

I am trying to run queries in our ERP system to collect large sums of data. I can access our Epicor queries via REST API V2. I'm troubleshooting in Postman with the goal of having Python automate the data collection.

My header in Postman contains my basic HTTPS authentication and API key. I'm using the suffix /Data to show the data from this specific query. API call in postman using basic HTTPs authentication (username/pass) and API key in the header.

However, in python I can't figure out how to extract the same data. I've tried the API HTTPS address with /?api-key=" "/Data?, but it only returns the metadata of the query. I believe this is a syntax issue within python that I'm missing because it clearly works in postman.

How to I correctly call this API in python to extract the full data and not just the metadata? Image of metadata returned by Python (removed "/Data?" from query)

Note that no combination of suffix (i.e. /Data?, &metadata#data) works in Python. It only returns the metadata, and nothing else.

0

There are 0 best solutions below