Using the 'https://secure.eloqua.com/API/REST/1.0/assets/contact/fields' URL, I can currently get a list of all of the fields used for my contacts (ie. Email, Phone etc.)
This works great, but for some reason the internalName of each field is not included in the response; it looks like if I want this value I have to make the initial HTTP request as above, and then separately loop through each resulting field and run another HTTP request ( 'https://secure.eloqua.com/API/REST/1.0/assets/contact/field/'.$item['id'] ) for each one.
Unfortunately, I have over 200 fields; so 200+ separate HTTP requests is not a viable solution.
Is there anyway that I am perhaps overlooking, for achieving a list of contact fields that includes the internalName?
I am currently writing an Eloqua addon for the WordPress plugin Gravity Forms, and this is something that is urgently needed for auto-mapping the Gravity Form fields to Eloqua fields.
Any input or advice is greatly appreciated!
Best Regards,
M.T. Jordan