ResponseParser
final class ResponseParser implements ResponseParserInterface (View source)
IBS ResponseParser
Decodes the IBS/Moniker JSON payload, falling back to the plain-text
key=value format the templates and non-JSON responses use. Instantiable and
stateless — see {\CNIC\ResponseParserInterface} for why the parse step is a
seam rather than a static call.
Methods
array
parse(string $raw, array $cmd = [])
Method to parse API response into associative array
Details
array
parse(string $raw, array $cmd = [])
Method to parse API response into associative array