Publitio PHP SDK  2.0.0
PHP SDK for Publitio API
Public Member Functions | List of all members
Publitio\BadJSONResponse Class Reference

This exception is thrown when the server responds with incorrectly formatted JSON. More...

Inheritance diagram for Publitio\BadJSONResponse:
Inheritance graph
[legend]
Collaboration diagram for Publitio\BadJSONResponse:
Collaboration graph
[legend]

Public Member Functions

 __construct ($body, $call_url)
 

Detailed Description

This exception is thrown when the server responds with incorrectly formatted JSON.

This also happens then the server responds with something that isn't JSON at all, such as HTML code. This can happen when you use a nonexistent API endpoint (for example, a typo - 'flies/list' instead of 'files/list'). This may also happen if an internal server error occurs.


The documentation for this class was generated from the following file: