RE: API detail des calls ne prend pas les dates
15/01/2020, 13:04
Message : #5
Il reste un bug sur date_end sur https://api.keyyo.com/manager/1.0/outgoing_call_detail
Voici les deux tests (un sur incoming_call_detail et un sur outgoing_call_detail)
curl -s -g -G -H "Authorization: Bearer $access_token" -o $input_call_file -d filters[date_start]=$date_start -d filters[date_end]=$date_end -d filters[limit]=5000 https://api.keyyo.com/manager/1.0/incoming_call_detail
retour serveur (0K):
"_links": {
"self": {
"href": "https://api.keyyo.com/manager/1.0/incoming_call_detail?filters[date_start]=2019-12-16&filters[date_end]=2019-12-18&filters[limit]=5000"
resultat (OK) :
Appels entrants : 28
The Min is 2019-12-16 11:17:34 ,Max is 2019-12-17 16:42:07
curl -s -g -G -H "Authorization: Bearer $access_token" -o $output_call_file -d filters[date_start]=$date_start -d filters[date_end]=$date_end -d filters[limit]=5000 https://api.keyyo.com/manager/1.0/outgoing_call_detail
retour serveur (OK) :
"_links": {
"self": {
"href": "https://api.keyyo.com/manager/1.0/outgoing_call_detail?filters[date_start]=2019-12-16&filters[date_end]=2019-12-18&filters[limit]=5000"
resultat (NOK):
Appels sortants : 4874
The Min is 2019-12-16 09:22:11 ,Max is 2020-01-15 11:45:04
----------------------------------
La date de fin n'est jamais prise en compte
Voici les deux tests (un sur incoming_call_detail et un sur outgoing_call_detail)
curl -s -g -G -H "Authorization: Bearer $access_token" -o $input_call_file -d filters[date_start]=$date_start -d filters[date_end]=$date_end -d filters[limit]=5000 https://api.keyyo.com/manager/1.0/incoming_call_detail
retour serveur (0K):
"_links": {
"self": {
"href": "https://api.keyyo.com/manager/1.0/incoming_call_detail?filters[date_start]=2019-12-16&filters[date_end]=2019-12-18&filters[limit]=5000"
resultat (OK) :
Appels entrants : 28
The Min is 2019-12-16 11:17:34 ,Max is 2019-12-17 16:42:07
curl -s -g -G -H "Authorization: Bearer $access_token" -o $output_call_file -d filters[date_start]=$date_start -d filters[date_end]=$date_end -d filters[limit]=5000 https://api.keyyo.com/manager/1.0/outgoing_call_detail
retour serveur (OK) :
"_links": {
"self": {
"href": "https://api.keyyo.com/manager/1.0/outgoing_call_detail?filters[date_start]=2019-12-16&filters[date_end]=2019-12-18&filters[limit]=5000"
resultat (NOK):
Appels sortants : 4874
The Min is 2019-12-16 09:22:11 ,Max is 2020-01-15 11:45:04
----------------------------------
La date de fin n'est jamais prise en compte