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