just need to get a specific count of a json data
here's the sample json format:
{
"tickets": [
{
"url": "https://asd.zendesk.com/api/v2/tickets/1.json",
"id": 1,
"external_id": null,
"via": {
"channel": "sample_ticket",
"source": {
"from": {},
"to": {},
"rel": null
}
},
"created_at": "2017-04-25T05:56:36Z",
"updated_at": "2017-04-25T05:56:36Z",
"status": "open",
},
{
"url": "https://asd.zendesk.com/api/v2/tickets/2.json",
"id": 2,
"external_id": null,
"via": {
"channel": "sample_ticket",
"source": {
"from": {},
"to": {},
"rel": null
}
},
"created_at": "2017-04-25T05:56:36Z",
"updated_at": "2017-04-25T05:56:36Z",
"status": "close",
},
{
"url": "https://asd.zendesk.com/api/v2/tickets/2.json",
"id": 2,
"external_id": null,
"via": {
"channel": "sample_ticket",
"source": {
"from": {},
"to": {},
"rel": null
}
},
"created_at": "2017-04-25T05:56:36Z",
"updated_at": "2017-04-25T05:56:36Z",
"status": "solve",
}
]
}
i want to count how many open, close and solve status using php or ajax or both... need the data auto load also... so we don't need to refresh..