posting data to an API
I’m working with a vendors API and the documentation is a little sparse. they are looking for a post formatted like this. {"import":{"members":[{"organization_customer_identifier":"XXXXXX","program_customer_identifier":"XXXXXX","member_customer_identifier":"XXX-XXX-XXXX","first_name":"Mister","last_name":"Tester","email_address":USER@DOMAIN.COM,"member_status":"OOOO","record_identifier":"XXX"}]}}’ my code is submitting it like this. {"members":{"organization_customer_identifier":"XXXXXX","program_customer_identifier":"XXXXXX","member_status":"OOOO","member_customer_identifier":"XXX-XXX-XXXX","first_name":"Mister","last_name":"Tester","email_address":"USER@DOMAIN.COM","record_identifier":"XXX"}} I’m not that versed in using PHP to submit to an API with json/curl… as i understand it "import" is object and "members" is… Read More posting data to an API