How do I get all common fields and member fields?
I'm using the PHP Sample Code, but can't figure out how to get the member fields from the call to the Contacts api. I did a var_dump and there appears to be several arrays. Do I iterate through each array or should I be making a call to the membershiplevel api? Please advise. Thanks in advance.
Archived due to no activity for 1 year.
-
We don't use PHP in our development, so I can't give any practical advice on working with API from PHP. What I really recommend is to use API description from https://app.swaggerhub.com/apis/WildApricot/wild-apricot_public_api/2.1.0 and download PHP client library generated for this API. In order to do that you:
- open API specification (url above)
- press download button in top right corner
- pick in menu "Client > php"This autogenerated code will provide you full description of API models, so you will not need to search through arrays of dumps.
-
Anonymous commented
This is a great question
-
Hi,
What API call did you make (url, parameters)? Do you request single contact or a list of contacts?