Hi,
I am using analytics API jobs API to request conversations details as below:
- Build query and post the job:
api_result_jobid = analytics_api.post_analytics_conversations_details_jobs(query).to_json()
Request JSON looks like below:
{'conversation_filters': None,
'evaluation_filters': None,
'interval': '2020-01-31T09:25:56/2020-02-03T09:25:56',
'limit': None,
'media_endpoint_stat_filters': None,
'order': None,
'order_by': None,
'segment_filters': None,
'start_of_day_interval_matching': None,
'survey_filters': None}
- Check the status of the job:
api_result_jobid_status = analytics_api.get_analytics_conversations_details_job(jID).to_json()
Response JSON looks below:
api_result_jobid_status: {"state": "FULFILLED", "error_message": null, "expirati
on_date": "2020-03-05T00:00:00+00:00", "submission_date": "2020-02-03T15:09:44.2
28000+00:00", "completion_date": null}
jRes: {'state': 'FULFILLED', 'error_message': None, 'expiration_date': '2020-03-
05T00:00:00+00:00', 'submission_date': '2020-02-03T15:09:44.228000+00:00', 'comp
letion_date': None}
- Get the result of this job:
apiResult = analytics_api.get_analytics_conversations_details_job_results('22824d0d-015e-424e-99e4-373721018bbb').to_json()
Reponse JSON is below:
{"conversations": null, "cursor": null}
Why am I getting no data returned for this job?
If I run use the same time period interval and use post_analytics_conversations_details_query API call, I am getting the data back.
Is there something wrong in the request JSON I am passing to run the job?
Thanks.