Closed danielbitzer closed 7 years ago
Since this is a GET
method, it would just be:
$contact = $ac->api("contact/view?email=hello@example.com");
We have a task open to improve this, as it would make sense to be able to pass GET
parameters as the second parameter of $ac->api()
, but for now that's limited to POST
data.
Fair enough. I did try that too, but for some reason $params was coming through as an empty string in the view() method.
Hi, I tested this on one of my own accounts, and it seemed to work fine, so to continue troubleshooting, please submit a support ticket and mention this thread so it gets directed to me. I will need to see your full API request. Thanks! :+1:
I've tried a few different paths and I'm fairly sure this is a bug.
To fix I'm adding the following method to class AC_Contact