Hello,
I want to use the EspoCRM API to import data and access the import results.
I have successfully set up Authentication by API key as described here: https://docs.espocrm.com/development...ion-by-api-key, and am able to get data from the API using Python.
To get import data, I checked what URL was being used when viewing the import list/ results page in the EspoCRM user interface, and have tried the following
This returns 200 status code, but an empty list of results. The status code, headers, and data returned are:
Could you please let me know how I can use the EspoCRM API to get import data results?
Thanks!
Alex Howes
I want to use the EspoCRM API to import data and access the import results.
I have successfully set up Authentication by API key as described here: https://docs.espocrm.com/development...ion-by-api-key, and am able to get data from the API using Python.
To get import data, I checked what URL was being used when viewing the import list/ results page in the EspoCRM user interface, and have tried the following
Code:
response = requests.get( "https://mydomain/api/v1/Import", headers={'X-Api-Key': os.environ.get('ESPOCRM_API_KEY')} )
Code:
<Response [200]> {'Server': 'nginx', 'Date': 'Wed, 01 Nov 2023 16:27:17 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-App-Timestamp': '1698310564', 'Expires': '0', 'Last-Modified': 'Wed, 01 Nov 2023 16:27:17 GMT', 'Cache-Control': 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'Pragma': 'no-cache', 'Content-Encoding': 'gzip'} {'total': 0, 'list': []}
Could you please let me know how I can use the EspoCRM API to get import data results?
Thanks!
Alex Howes
Comment