Receiving API Response in JSON

This article will cover how to receive a JSON response from an API call instead of XML


Requirements

  1. POST your request.
  2. JSON encode your parameters.
  3. Set the Content-Type to JSON compatible.


Example PHP Snippet

Example PHP Snippet

If you have any questions, please reach out to your dedicated CAKE Client Success Manager/Account Manager or contact the CAKE Support Team at support@getCAKE.com.


You may also be interested in:

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.