errors
on the resulting object now returns a boolean instead of an object. The body
will not contain the error response.
rest
will remain the same, however, there is now restAsync
which will return a Guzzle promise should you choose to use it.
No upgrading is required if you do not capture 400-500 exceptions from Guzzle yourself. If you do, the library now handles these exceptions internally and returns them inside the resulting object.
getApiCalls()
now takes two arguments, first being rest|graph, second being the key
Old:
getApiCalls('left');
New:
getApiCalls('rest', 'left');
request()
still exists, and is aliased torest()
but encourage you to move all REST calls to the newrest()
method name