I'm using an API from an SMS provider (yes, it needs to be this provider so I'm stuck with it), but their documentation leaves a lot to be desired, and that includes examples and support.
I'm trying to figure out their different callbacks however I have no idea what exactly they're sending back. Is there a way to write a PHP script that captures any incoming responses to file. The responses look like this (but not exclusively), so I wanna send a couple calls (both correct and with errors) and record what I get.
{
"api_job_id":"4c2478d3-aebb-4510-8720-1b479d01cfd5",
"client_job_id":"abc123456",
"data":[
{
"type":"SMS",
"message_id":"14182390945378443202",
"status":"SENT",
"timestamp":1422885283,
"micro_timestamp":1422885283477,
"to":"XXXXXXXXX",
"from":"CompanyA",
"client_message_id":"2",
"error_code":0
}
]
}