I’ve have an request to get some info from Asterisk server and import it in eazyBI to get reports. There is some information left from the administrator, who is not currently working in our company.
I’ve got an Asterisk’s source data URL - http://192.168.1.2/api.php
I’ve got a request body:
‘api_key’ => $api_key,
‘action’ => ‘get_cdr_data’,
‘date_start’ => ‘2023-01-18 00:00:00’,
‘date_end’ => ‘2023-01-18 23:59:59’,
but this is invalid. Please help!
Hi @Alexandr_Me ,
Welcome to the eazyBI Community
eazyBI expects the input for the request body to be in JSON format. Your example in that case would be like this:
"date_start": "2023-01-18 00:00:00",
"date_end": "2023-01-18 23:59:59"
But in the meantime, we don’t have any information about the Asterisk server and its REST API endpoint to see if your configuration of the parameters is correct. We would assume that an endpoint is handling API keys within authorization headers, not the request body, and we have a dedicated authorization section for these. See more here: Import from REST API
But you will need to find someone in the company who knows this server better and can help you with this REST API.
Gerda // support@eazyBI.com