batchResponse()
batchResponse(string $json) : \Clx\Xms\Api\MtBatchSmsResult
Reads a JSON blob describing a batch result.
If the type field has the value mt_text then an
MtBatchSmsTextCreate object is returned, if the value is
mt_binary then an MtBatchTextSmsCreate object is
returned, otherwise an exception is thrown.
Parameters
| string | $json | the JSON text to interpret |
Throws
- \Clx\Xms\UnexpectedResponseException
if the JSON contained an unexpected message type
Returns
\Clx\Xms\Api\MtBatchSmsResult —the parsed result