API V2 GET CRM Accounts returns missing data using php/Wordpress wp_remote_get()

API V2 GET CRM Accounts returns missing data using php/Wordpress wp_remote_get()

Hi, when using the endpoint https://www.zohoapis.com/crm/v2/Accounts in Postman I get all the correct data, however using exact same call in php/Wordpress the data comes back really strange.

With Postman there are 117 records, using wp_remote_get (or wp_remote_request) it *says* there are 117 records, but there are only 31, and many fields are just missing.

I understand this might not be a Zoho-specific thing, but if anyone has run across this issue please let me know.

Simplified version of code, which is effectively the same as what is being done in Postman:

  1. $ZohoResponse = wp_remote_get(
    1. 'https://www.zohoapis.com/crm/v2/Accounts', [
      1. 'method' => 'GET',
      2. 'timeout' => 45,
      3. 'headers' => 'Zoho auth stuff'
    2. ]
  2. );