Skip to content
Advertisement

Using Guzzle with GetResponse API to save custom field?

I am sending a post request to the GetResponse API. Everything works fine until I add a custom field (customFieldValues) to save along with my new email contact.

JavaScript

When I send the request I get the following error message:

JavaScript

I have tried a few things now and not sure how to format this properly to have the API accept it.

Reference link: http://apidocs.getresponse.com/v3/case-study/adding-contacts

Advertisement

Answer

I found the solution on github in an example for their php api here:

https://github.com/GetResponse/getresponse-api-php

I suppose I had to wrap an array inside an array inside of an array…geez:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement