Hi all,
I am trying to duplicate this CURL using mvcall:
Unfortunately, I keep getting the response: "contacts:must be an array"
Any suggestion on how to:
- build the array (I have tried multiple methods including MvAssignArray.
- pass the array in the mvcall (as a field, as a header, in the action ??
FYI - authorization, etc are working fine, it is only the actual array that is failing.
Bill
I am trying to duplicate this CURL using mvcall:
Code:
curl https://vrapi.verticalresponse.com/api/v1/contacts -H "Authorization: Bearer xxxxxxxxxxxxx" -H "Content-Type:application/json" --request POST --data '{ "contacts":[ { "email":"[email protected]", "first_name":"Hermione", "last_name":"Granger" }, { "email":"[email protected]", "first_name":"James", "last_name":"Potter" }, { "email":"[email protected]", "first_name":"Lily", "last_name":"Evans" }] }' | python -mjson.tool
Any suggestion on how to:
- build the array (I have tried multiple methods including MvAssignArray.
- pass the array in the mvcall (as a field, as a header, in the action ??
FYI - authorization, etc are working fine, it is only the actual array that is failing.
Bill
Comment